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.

Reply via email to