Source: dateparser
Severity: normal

Salsa CI will likely fail too:

https://salsa.debian.org/python-team/packages/dateparser/-/pipelines/626417



Local build:

=================================== FAILURES ===================================
_____________ TestLocalTZOffset.test_timezone_offset_calculation_0 _____________

a = (<tests.test_timezone_parser.TestLocalTZOffset 
testMethod=test_timezone_offset_calculation_0>,)

    @wraps(func)
    def standalone_func(*a):
>       return func(*(a + p.args), **p.kwargs)

/usr/lib/python3/dist-packages/parameterized/parameterized.py:637: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/tmp/dateparser/.pybuild/cpython3_3.11_dateparser/build/tests/test_timezone_parser.py:143:
 in test_timezone_offset_calculation
    self.then_offset_is(offset)
/tmp/dateparser/.pybuild/cpython3_3.11_dateparser/build/tests/test_timezone_parser.py:154:
 in then_offset_is
    self.assertEqual(delta, self.timezone_offset)
E   AssertionError: datetime.timedelta(seconds=14400) != 
datetime.timedelta(seconds=21600)
_____________ TestLocalTZOffset.test_timezone_offset_calculation_1 _____________

a = (<tests.test_timezone_parser.TestLocalTZOffset 
testMethod=test_timezone_offset_calculation_1>,)

    @wraps(func)
    def standalone_func(*a):
>       return func(*(a + p.args), **p.kwargs)

/usr/lib/python3/dist-packages/parameterized/parameterized.py:637: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/tmp/dateparser/.pybuild/cpython3_3.11_dateparser/build/tests/test_timezone_parser.py:143:
 in test_timezone_offset_calculation
    self.then_offset_is(offset)
/tmp/dateparser/.pybuild/cpython3_3.11_dateparser/build/tests/test_timezone_parser.py:154:
 in then_offset_is
    self.assertEqual(delta, self.timezone_offset)
E   AssertionError: datetime.timedelta(days=-1, seconds=82800) != 
datetime.timedelta(0)
_____________ TestLocalTZOffset.test_timezone_offset_calculation_2 _____________

a = (<tests.test_timezone_parser.TestLocalTZOffset 
testMethod=test_timezone_offset_calculation_2>,)

    @wraps(func)
    def standalone_func(*a):
>       return func(*(a + p.args), **p.kwargs)

/usr/lib/python3/dist-packages/parameterized/parameterized.py:637: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/tmp/dateparser/.pybuild/cpython3_3.11_dateparser/build/tests/test_timezone_parser.py:143:
 in test_timezone_offset_calculation
    self.then_offset_is(offset)
/tmp/dateparser/.pybuild/cpython3_3.11_dateparser/build/tests/test_timezone_parser.py:154:
 in then_offset_is
    self.assertEqual(delta, self.timezone_offset)
E   AssertionError: datetime.timedelta(seconds=1800) != 
datetime.timedelta(seconds=5400)
_____________ TestLocalTZOffset.test_timezone_offset_calculation_3 _____________

a = (<tests.test_timezone_parser.TestLocalTZOffset 
testMethod=test_timezone_offset_calculation_3>,)

    @wraps(func)
    def standalone_func(*a):
>       return func(*(a + p.args), **p.kwargs)

/usr/lib/python3/dist-packages/parameterized/parameterized.py:637: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/tmp/dateparser/.pybuild/cpython3_3.11_dateparser/build/tests/test_timezone_parser.py:143:
 in test_timezone_offset_calculation
    self.then_offset_is(offset)
/tmp/dateparser/.pybuild/cpython3_3.11_dateparser/build/tests/test_timezone_parser.py:154:
 in then_offset_is
    self.assertEqual(delta, self.timezone_offset)
E   AssertionError: datetime.timedelta(days=-1, seconds=43200) != 
datetime.timedelta(days=-1, seconds=50400)
_____________ TestLocalTZOffset.test_timezone_offset_calculation_4 _____________

a = (<tests.test_timezone_parser.TestLocalTZOffset 
testMethod=test_timezone_offset_calculation_4>,)

    @wraps(func)
    def standalone_func(*a):
>       return func(*(a + p.args), **p.kwargs)

/usr/lib/python3/dist-packages/parameterized/parameterized.py:637: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/tmp/dateparser/.pybuild/cpython3_3.11_dateparser/build/tests/test_timezone_parser.py:143:
 in test_timezone_offset_calculation
    self.then_offset_is(offset)
/tmp/dateparser/.pybuild/cpython3_3.11_dateparser/build/tests/test_timezone_parser.py:154:
 in then_offset_is
    self.assertEqual(delta, self.timezone_offset)
E   AssertionError: datetime.timedelta(0) != datetime.timedelta(seconds=7200)
=========================== short test summary info ============================
FAILED 
tests/test_timezone_parser.py::TestLocalTZOffset::test_timezone_offset_calculation_0
FAILED 
tests/test_timezone_parser.py::TestLocalTZOffset::test_timezone_offset_calculation_1
FAILED 
tests/test_timezone_parser.py::TestLocalTZOffset::test_timezone_offset_calculation_2
FAILED 
tests/test_timezone_parser.py::TestLocalTZOffset::test_timezone_offset_calculation_3
FAILED 
tests/test_timezone_parser.py::TestLocalTZOffset::test_timezone_offset_calculation_4
===== 5 failed, 23912 passed, 2 skipped, 3 deselected in 496.78s (0:08:16) =====



-- System Information:
Debian Release: trixie/sid
  APT prefers testing
  APT policy: (501, 'testing'), (450, 'unstable'), (400, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.5.0-5-amd64 (SMP w/2 CPU threads; PREEMPT)
Kernel taint flags: TAINT_USER
Locale: LANG=fr_BE.UTF-8, LC_CTYPE=fr_BE.UTF-8 (charmap=UTF-8), 
LANGUAGE=fr_BE:fr
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)

Reply via email to