Your message dated Thu, 01 May 2025 12:34:16 +0000
with message-id <e1uat7i-000xym...@fasolo.debian.org>
and subject line Bug#1104508: fixed in python-holidays 0.71-2
has caused the Debian Bug report #1104508,
regarding python-holidays: FTBFS: E AssertionError: (datetime.date(2025, 5, 2),
'Custom May 2nd Holiday') not found in [(datetime.date(2026, 5, 1), 'Custom May
1st Holiday'), (datetime.date(2026, 5, 2), 'Custom May 2nd Holiday')]
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)
--
1104508: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1104508
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: src:python-holidays
Version: 0.71-1
Severity: serious
Tags: ftbfs trixie sid
Dear maintainer:
During a rebuild of all packages in unstable, your package failed to build:
--------------------------------------------------------------------------------
[...]
=================================== FAILURES ===================================
_____________ TestClosestHoliday.test_get_closest_holiday_forward ______________
self = <tests.test_holiday_base.TestClosestHoliday
testMethod=test_get_closest_holiday_forward>
def test_get_closest_holiday_forward(self):
self.assertEqual(
self.hb.get_closest_holiday(f"{self.current_year}-01-01"),
(date(self.current_year, 5, 1), "Custom May 1st Holiday"),
)
self.assertEqual(
self.hb.get_closest_holiday(f"{self.current_year}-04-30"),
(date(self.current_year, 5, 1), "Custom May 1st Holiday"),
)
self.assertEqual(
self.hb.get_closest_holiday(f"{self.current_year}-05-01"),
(date(self.current_year, 5, 2), "Custom May 2nd Holiday"),
)
self.assertEqual(
self.hb.get_closest_holiday(f"{self.current_year}-05-02"),
(date(self.next_year, 5, 1), "Custom May 1st Holiday"),
)
self.assertEqual(
self.hb.get_closest_holiday(f"{self.next_year}-01-01"),
(date(self.next_year, 5, 1), "Custom May 1st Holiday"),
)
> self.assertIn(
self.hb.get_closest_holiday(),
[
(date(self.next_labor_day_year, 5, 1), "Custom May 1st
Holiday"),
(date(self.next_labor_day_year, 5, 2), "Custom May 2nd
Holiday"),
],
)
E AssertionError: (datetime.date(2025, 5, 2), 'Custom May 2nd Holiday')
not found in [(datetime.date(2026, 5, 1), 'Custom May 1st Holiday'),
(datetime.date(2026, 5, 2), 'Custom May 2nd Holiday')]
tests/test_holiday_base.py:1320: AssertionError
=========================== short test summary info ============================
FAILED
tests/test_holiday_base.py::TestClosestHoliday::test_get_closest_holiday_forward
======================= 1 failed, 3764 passed in 20.60s ========================
E: pybuild pybuild:389: test: plugin pyproject failed with: exit code=1: cd
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_holidays/build; python3.13 -m pytest
tests
dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p 3.13
returned exit code 13
make: *** [debian/rules:6: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
--------------------------------------------------------------------------------
The above is just how the build ends and not necessarily the most relevant part.
If required, the full build log is available here:
https://people.debian.org/~sanvila/build-logs/202505/
About the archive rebuild: The build was made on virtual machines from AWS,
using sbuild and a reduced chroot with only build-essential packages.
If you could not reproduce the bug please contact me privately, as I
am willing to provide ssh access to a virtual machine where the bug is
fully reproducible.
If this is really a bug in one of the build-depends, please use
reassign and add an affects on src:python-holidays, so that this is still
visible in the BTS web page for this package.
Thanks.
--- End Message ---
--- Begin Message ---
Source: python-holidays
Source-Version: 0.71-2
Done: Colin Watson <cjwat...@debian.org>
We believe that the bug you reported is fixed in the latest version of
python-holidays, which is due to be installed in the Debian FTP archive.
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to 1104...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Colin Watson <cjwat...@debian.org> (supplier of updated python-holidays package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmas...@ftp-master.debian.org)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Format: 1.8
Date: Thu, 01 May 2025 13:19:02 +0100
Source: python-holidays
Architecture: source
Version: 0.71-2
Distribution: unstable
Urgency: medium
Maintainer: Debian Python Team <team+pyt...@tracker.debian.org>
Changed-By: Colin Watson <cjwat...@debian.org>
Closes: 1104508
Changes:
python-holidays (0.71-2) unstable; urgency=medium
.
* Team upload.
* Fix `TestClosestHoliday` current date handling (closes: #1104508).
Checksums-Sha1:
bfac6ddb9a86fe8621e2eb7381d32a848c9587e6 2426 python-holidays_0.71-2.dsc
3950a493cf29316b70ab93cb4016c5d10ca5b90a 4040
python-holidays_0.71-2.debian.tar.xz
Checksums-Sha256:
41972f20a81fe1e2ac5f570c3af483afdcc4ed03f574eb309788ce23e3e1f81a 2426
python-holidays_0.71-2.dsc
8849813bbc0a744476aab612cfadd65dac4b96a25595b9ef824f606eef208835 4040
python-holidays_0.71-2.debian.tar.xz
Files:
afbbe18bea03ce8f5f63f99963dd5df3 2426 python optional
python-holidays_0.71-2.dsc
dc252d8703826476592636f9648d5187 4040 python optional
python-holidays_0.71-2.debian.tar.xz
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCgAdFiEErApP8SYRtvzPAcEROTWH2X2GUAsFAmgTZuAACgkQOTWH2X2G
UAuXbQ//YHUs4CbcEF7uALWa/FYCO8ATnalV+H9axDi0IK11ijMyeTdboZ/cvm+O
uTRoBuHLnOdb4KJIA7OWvd+r1ZRLuVH0mAFt3EK1F0okcLGBQU3NT2SuTb7WlM1P
74tfpHVymPsTmwjtn9yNE/FB/wFeH5zMbCzTd76MXwnsEbqdEDbFNXNwLijdDEZh
67TUOWg5o2znGMrUO1HvMaKky70ZhLgicOzvsbfM4vReGSLNF3rKlqo98Ae2NlGK
zCTady6v20waQuOI1zfFe9BRKFilIX8tQujIjHVTrT36RkbzO/qC8TuptqeFT8BU
XkvSskbOZxqlcbpESsBLrR+pBpMAZCp9lwKrcstJjZ4CXgGmzHhtlFDKE/lWbbDP
XN3biAeraVJeglq+qmiChafd2tKvjzZ1NEoMeEK637pjKu6FqdFKrJeRKP8pjV+y
B8wbj6Cdk96NKuWc9HactxvWlfxoZmcF7bVHUINRkfH0cwJZHDgJbBiZZzZYRaAS
f/qu9oJW4AoVmFXgIB6EJ4HUnK5Zfc4AK6/eMPuTg7cl87twXMIClbEOwUQQmVSc
ze4xs8s3C4u1pWE86EjDKLTVskGv9Q6VWxS9RXPQA/EYLKYFUk+5Og/wMYg3gQ++
vLdllvl1pBOBYI5FRS/Vz2P/2bmJ3SJXgf/Krm2kBAGi6iFknco=
=cE9w
-----END PGP SIGNATURE-----
pgpLPo7kIMu2k.pgp
Description: PGP signature
--- End Message ---