[Debian-l10n-devel] Bug#902162: translate-toolkit: FTBFS in stretch (broken by change in Africa/Windhoek timezone)
Santiago Vila
sanvila at unex.es
Fri Jun 22 23:41:43 BST 2018
Package: src:translate-toolkit
Version: 2.0.0-1
Severity: serious
Tags: ftbfs
Dear maintainer:
This package does no longer build from source in Debian stretch:
[...]
=================================== FAILURES ===================================
________________________________ test_timezones ________________________________
def test_timezones():
pofile = po.pofile()
# The following will only work on Unix because of tzset() and %z
if 'tzset' in time.__dict__:
os.environ['TZ'] = 'Asia/Kabul'
time.tzset()
assert time.timezone == -16200
# Typically "+0430"
assert poheader.tzstring() == time.strftime("%z")
os.environ['TZ'] = 'Asia/Seoul'
time.tzset()
assert time.timezone == -32400
# Typically "+0900"
assert poheader.tzstring() == time.strftime("%z")
os.environ['TZ'] = 'Africa/Johannesburg'
time.tzset()
assert time.timezone == -7200
# Typically "+0200"
assert poheader.tzstring() == time.strftime("%z")
os.environ['TZ'] = 'Africa/Windhoek'
time.tzset()
> assert time.timezone == -3600
E assert -7200 == -3600
E + where -7200 = time.timezone
../../translate/storage/test_poheader.py:127: AssertionError
=== 1 failed, 2252 passed, 1 skipped, 51 xfailed, 6 xpassed in 10.48 seconds ===
E: pybuild pybuild:283: test: plugin custom failed with: exit code=1: cp -a tests share /<<PKGBUILDDIR>>/.pybuild/pythonX.Y_2.7/build; cd /<<PKGBUILDDIR>>/.pybuild/pythonX.Y_2.7/build; PATH=/<<PKGBUILDDIR>>/debian/python-translate/usr/bin:$PATH python2.7 -m pytest -v -rxs
dh_auto_test: pybuild --test --test-pytest -i python{version} -p 2.7 returned exit code 13
debian/rules:42: recipe for target 'override_dh_install' failed
The above is from my own autobuilder, but it also happens here:
https://tests.reproducible-builds.org/debian/rb-pkg/stretch/amd64/translate-toolkit.html
Thanks.
More information about the Debian-l10n-devel
mailing list