Package: release.debian.org
Severity: normal
Tags: bullseye
User: release.debian....@packages.debian.org
Usertags: pu
X-Debbugs-Cc: python-std...@packages.debian.org, sanv...@debian.org
Control: affects -1 + src:python-stdnum
[ Reason ]
Fix FTBFS bug due to failing test (#1022311).
[ Impact ]
Anybody trying to build the package from source will get that
the package unexpectedly fails to build.
[ Tests ]
I've tested that the fixed package builds ok again.
[ Risks ]
Very low. It's just a minor change in a test, which was taken from upstream.
[ Checklist ]
[X] *all* changes are documented in the d/changelog
[X] I reviewed all changes and I approve them
[X] attach debdiff against the package in (old)stable
[X] the issue is verified as fixed in unstable
[ Changes ]
See changelog.
[ Other info ]
I'm going to upload the package after sending this report.
diff -Nru python-stdnum-1.16/debian/changelog
python-stdnum-1.16/debian/changelog
--- python-stdnum-1.16/debian/changelog 2021-02-06 17:52:07.000000000 +0100
+++ python-stdnum-1.16/debian/changelog 2024-06-23 15:35:00.000000000 +0200
@@ -1,3 +1,11 @@
+python-stdnum (1.16-1+deb11u1) bullseye; urgency=medium
+
+ * Team upload.
+ [ Arthur de Jong ]
+ * Update Fødselsnummer test case for date in future. Closes: #1022311.
+
+ -- Santiago Vila <sanv...@debian.org> Sun, 23 Jun 2024 15:35:00 +0200
+
python-stdnum (1.16-1) unstable; urgency=medium
* New upstream release:
diff -Nru python-stdnum-1.16/debian/patches/series
python-stdnum-1.16/debian/patches/series
--- python-stdnum-1.16/debian/patches/series 1970-01-01 01:00:00.000000000
+0100
+++ python-stdnum-1.16/debian/patches/series 2024-06-23 15:28:38.000000000
+0200
@@ -0,0 +1 @@
+update-fodselsnummer-test-case.patch
diff -Nru
python-stdnum-1.16/debian/patches/update-fodselsnummer-test-case.patch
python-stdnum-1.16/debian/patches/update-fodselsnummer-test-case.patch
--- python-stdnum-1.16/debian/patches/update-fodselsnummer-test-case.patch
1970-01-01 01:00:00.000000000 +0100
+++ python-stdnum-1.16/debian/patches/update-fodselsnummer-test-case.patch
2024-06-23 15:35:00.000000000 +0200
@@ -0,0 +1,26 @@
+From: Arthur de Jong <art...@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.
+
+