• Bug#1104508: python-holidays: FTBFS: E AssertionError: (datetime.date(2

    From Santiago Vila@21:1/5 to All on Thu May 1 13:30:01 2025
    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.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Debian Bug Tracking System@21:1/5 to All on Thu May 1 14:30:01 2025
    Processing control commands:

    tag -1 pending
    Bug #1104508 [src:python-holidays] 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')]
    Added tag(s) pending.

    --
    1104508: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1104508
    Debian Bug Tracking System
    Contact owner@bugs.debian.org with problems

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Colin Watson@21:1/5 to All on Thu May 1 14:30:01 2025
    Control: tag -1 pending

    Hello,

    Bug #1104508 in python-holidays reported by you has been fixed in the
    Git repository and is awaiting an upload. You can see the commit
    message below and you can check the diff of the fix at:

    https://salsa.debian.org/python-team/packages/python-holidays/-/commit/6279a48d1796f559aff6494f5e73df4385fdefc8

    ------------------------------------------------------------------------
    Fix `TestClosestHoliday` current date handling

    Closes: #1104508 ------------------------------------------------------------------------

    (this message was generated automatically)
    --
    Greetings

    https://bugs.debian.org/1104508

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Debian Bug Tracking System@21:1/5 to All on Thu May 1 14:40:02 2025
    This is a multi-part message in MIME format...

    Your message dated Thu, 01 May 2025 12:34:16 +0000
    with message-id <E1uAT7I-000xYM-8w@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 owner@bugs.debian.org
    immediately.)


    --
    1104508: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1104508
    Debian Bug Tracking System
    Contact owner@bugs.debian.org with problems

    Received: (at submit) by bugs.debian.org; 1 May 2025 11:24:36 +0000 X-Spam-Checker-Version: SpamAssassin 3.4.6-bugs.debian.org_2005_01_02
    (2021-04-09) on buxtehude.debian.org
    X-Spam-Level:
    X-Spam-Status: No, score=-121.9 required=4.0 tests=ALL_TRUSTED,BAYES_00,
    BODY_INCLUDES_PACKAGE,DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,
    DKIM_VALID_AU,DKIM_VALID_EF,FROMDEVELOPER,HAS_PACKAGE,
    USER_IN_DKIM_WELCOMELIST,USER_IN_DKIM_WHITELIST,X_DEBBUGS_CC
    autolearn=ham autolearn_force=no
    version=3.4.6-bugs.debian.org_2005_01_02
    X-Spam-Bayes: score:0.0000 Tokens: new, 29; hammy, 150; neutral, 104; spammy,
    0. spammytokens: hammytokens:0.000-+--trixie, 0.000-+--pkgbuilddir,
    0.000-+--PKGBUILDDIR, 0.000-+--H*F:U*sanvila, 0.000-+--H*rp:U*sanvila Return-path: <sanvila@debian.org>
    Received: from muffat.debian.org ([2607:f8f0:614:1::1274:33]:55532)
    from C=NA,ST=NA,L=Ank