Source: python-tz
Version: 2022.1-1
Severity: serious
Justification: FTBFS
Tags: bookworm sid ftbfs
User: [email protected]
Usertags: ftbfs-20220813 ftbfs-bookworm
Hi,
During a rebuild of all packages in sid, your package failed to build
on amd64.
Relevant part (hopefully):
> make[1]: Entering directory '/<<PKGBUILDDIR>>'
> dh_auto_test -- --before-test="\
> cp /<<PKGBUILDDIR>>/README.rst {build_dir}; \
> cp -r /<<PKGBUILDDIR>>/pytz/tests {build_dir}/pytz/" \
> --after-test="rm -rf {build_dir}/README.rst {build_dir}/pytz/tests"
> I: pybuild pybuild:300: cp /<<PKGBUILDDIR>>/README.rst
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_tz/build; cp -r
> /<<PKGBUILDDIR>>/pytz/tests
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_tz/build/pytz/
> I: pybuild base:239: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_tz/build;
> python3.10 -m pytest
> ============================= test session starts
> ==============================
> platform linux -- Python 3.10.6, pytest-7.1.2, pluggy-1.0.0+repack
> rootdir: /<<PKGBUILDDIR>>
> collected 235 items
>
> pytz/tests/test_docs.py .. [
> 0%]
> pytz/tests/test_lazy.py ....................................... [
> 17%]
> pytz/tests/test_tzinfo.py .............................................. [
> 37%]
> ........................................................................ [
> 67%]
> ....................................................F.F................. [
> 98%]
> ....
> [100%]
>
> =================================== FAILURES
> ===================================
> __________________________ LocalTestCase.testLocalize
> __________________________
>
> self = <test_tzinfo.LocalTestCase testMethod=testLocalize>
>
> def testLocalize(self):
> loc_tz = pytz.timezone('Europe/Amsterdam')
>
> loc_time = loc_tz.localize(datetime(1930, 5, 10, 0, 0, 0))
> # Actually +00:19:32, but Python datetime rounds this
> > self.assertEqual(loc_time.strftime('%Z%z'), 'AMT+0020')
> E AssertionError: 'WEST+0100' != 'AMT+0020'
> E - WEST+0100
> E + AMT+0020
>
> pytz/tests/test_tzinfo.py:619: AssertionError
> ____________________ LocalTestCase.testPartialMinuteOffsets
> ____________________
>
> self = <test_tzinfo.LocalTestCase testMethod=testPartialMinuteOffsets>
>
> def testPartialMinuteOffsets(self):
> # utcoffset in Amsterdam was not a whole minute until 1937
> # However, we fudge this by rounding them, as the Python
> # datetime library
> tz = pytz.timezone('Europe/Amsterdam')
> utc_dt = datetime(1914, 1, 1, 13, 40, 28, tzinfo=UTC) # correct
> utc_dt = utc_dt.replace(second=0) # But we need to fudge it
> loc_dt = utc_dt.astimezone(tz)
> > self.assertEqual(
> loc_dt.strftime('%Y-%m-%d %H:%M:%S %Z%z'),
> '1914-01-01 14:00:00 AMT+0020'
> )
> E AssertionError: '1914-01-01 13:40:00 WET+0000' != '1914-01-01
> 14:00:00 AMT+0020'
> E - 1914-01-01 13:40:00 WET+0000
> E ? ^ ^ ^^ ^
> E + 1914-01-01 14:00:00 AMT+0020
> E ? ^ ^ ^^ ^
>
> pytz/tests/test_tzinfo.py:723: AssertionError
> =========================== short test summary info
> ============================
> FAILED pytz/tests/test_tzinfo.py::LocalTestCase::testLocalize -
> AssertionErro...
> FAILED pytz/tests/test_tzinfo.py::LocalTestCase::testPartialMinuteOffsets -
> A...
> ======================== 2 failed, 233 passed in 0.95s
> =========================
> E: pybuild pybuild:369: test: plugin distutils failed with: exit code=1: cd
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_tz/build; python3.10 -m pytest
> dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p 3.10
> "--before-test= cp /<<PKGBUILDDIR>>/README.rst {build_dir}; cp -r
> /<<PKGBUILDDIR>>/pytz/tests {build_dir}/pytz/" "--after-test=rm -rf
> {build_dir}/README.rst {build_dir}/pytz/tests" returned exit code 13
The full build log is available from:
http://qa-logs.debian.net/2022/08/13/python-tz_2022.1-1_unstable.log
All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20220813;[email protected]
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20220813&[email protected]&allbugs=1&cseverity=1&ctags=1&caffected=1#results
A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!
If you reassign this bug to another package, please marking it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects
If you fail to reproduce this, please provide a build log and diff it with mine
so that we can identify if something relevant changed in the meantime.