Package: src:dateparser
Version: 1.2.0-1
Severity: serious
Tags: sid trixie

dateparser's autopkg tests fail on 32bit platforms:

[...]
151s =================================== FAILURES =================================== 151s _____________ TestLocalTZOffset.test_timezone_offset_calculation_1 _____________
151s
151s a = (<tests.test_timezone_parser.TestLocalTZOffset testMethod=test_timezone_offset_calculation_1>,)
151s
151s     @wraps(func)
151s     def standalone_func(*a):
151s >       return func(*(a + p.args), **p.kwargs)
151s
151s /usr/lib/python3/dist-packages/parameterized/parameterized.py:637:
151s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 151s /tmp/autopkgtest-lxc.26ggv9gl/downtmp/autopkgtest_tmp/tests/test_timezone_parser.py:137: in test_timezone_offset_calculation
151s     self.given_time(utc, local)
151s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
151s
151s self = <tests.test_timezone_parser.TestLocalTZOffset testMethod=test_timezone_offset_calculation_1> 151s utc_dt_string = '2052-01-02 11:07', local_dt_string = '2052-01-02 10:07'
151s
151s     def given_time(self, utc_dt_string, local_dt_string):
151s         datetime_cls = dateparser.timezone_parser.datetime
151s         if not isinstance(datetime_cls, Mock):
151s             datetime_cls = Mock(wraps=datetime)
151s > utc_dt_obj = datetime.strptime(utc_dt_string, "%Y-%m-%d %H:%M").astimezone(
151s             dt.timezone.utc
151s         )
151s E       OverflowError: timestamp out of range for platform time_t
151s
151s /tmp/autopkgtest-lxc.26ggv9gl/downtmp/autopkgtest_tmp/tests/test_timezone_parser.py:156: OverflowError 151s =========================== short test summary info ============================ 151s FAILED tests/test_timezone_parser.py::TestLocalTZOffset::test_timezone_offset_calculation_1 151s ===== 1 failed, 23916 passed, 1 skipped, 3 deselected in 78.40s (0:01:18) ======

Reply via email to