File: update-fodselsnummer-test-case.patch

package info (click to toggle)
python-stdnum 1.16-1%2Bdeb11u1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 5,652 kB
  • sloc: python: 8,088; javascript: 6,995; makefile: 11
file content (26 lines) | stat: -rw-r--r-- 962 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
From: Arthur de Jong <arthur@arthurdejong.org>
Subject: Update Fødselsnummer test case for date in future
Origin: upstream, https://arthurdejong.org/git/python-stdnum/patch/?id=1003033fa0e97726d92f47231f96cf02fb35869a
Bug-Debian: https://bugs.debian.org/1022311
Last-Update: 2024-06-23
Forwarded: not-needed

The future was now. This problem was pushed forwards to October 2039.
---
 tests/test_no_fodselsnummer.doctest | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

--- a/tests/test_no_fodselsnummer.doctest
+++ b/tests/test_no_fodselsnummer.doctest
@@ -91,9 +91,9 @@
 Traceback (most recent call last):
   ...
 InvalidComponent: This number is an FH-number, and does not contain birth date information by design.
->>> fodselsnummer.validate('19102270846')
+>>> fodselsnummer.validate('18103970861')
 Traceback (most recent call last):
-	...
+  ...
 InvalidComponent: The birth date information is valid, but this person has not been born yet.