Source: augur
Version: 24.3.0-1
Severity: wishlist
Control: block 1069792 by -1

This package's tests fail with pandas 2.2, currently in experimental.

https://ci.debian.net/packages/a/augur/unstable/amd64/46551367/
https://launchpadlibrarian.net/728496766/buildlog_ubuntu-oracular-amd64.augur_24.3.0-1_BUILDING.txt.gz

=================================== FAILURES =================================== ___________________________ TestParse.test_fix_dates ___________________________

self = <test_parse.TestParse object at 0x7fe8586a3590>
capsys = <_pytest.capture.CaptureFixture object at 0x7fe8582e7ce0>

    def test_fix_dates(self, capsys):
        full_date = "4-5-2020"
>       assert parse.fix_dates(full_date) == "2020-05-04"

tests/test_parse.py:14:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

d = '4-5-2020', dayfirst = True

    def fix_dates(d, dayfirst=True):
        '''
attempt to parse a date string using pandas date parser. If ambiguous, the argument 'dayfirst' determines whether month or day is assumed to be
        the first field. Incomplete dates will be padded with XX.
        On failure to parse the date, the function will return the input.
        '''
        try:
>           from pandas.core.tools.datetimes import parsing
E ImportError: cannot import name 'parsing' from 'pandas.core.tools.datetimes' (/usr/lib/python3/dist-packages/pandas/core/tools/datetimes.py)

augur/parse.py:34: ImportError

Reply via email to