Bug#840847: freezegun: FTBFS under some timezones (eg. GMT-14)
Chris Lamb
lamby at debian.org
Sat Oct 15 14:11:39 UTC 2016
Source: freezegun
Version: 0.3.6-1
Severity: serious
Justification: fails to build from source
User: reproducible-builds at lists.alioth.debian.org
Usertags: ftbfs timezones
X-Debbugs-Cc: reproducible-builds at lists.alioth.debian.org
Dear Maintainer,
freezegun fails to build from source in logs/unstable undersome timezones (eg. TZ="/usr/share/zoneinfo/Etc/GMT-14"):
[..]
======================================================================
FAIL: tests.test_class_import.test_import_localtime
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/build-2nd/freezegun-0.3.6/freezegun/api.py", line 449, in wrapper
result = func(*args, **kwargs)
File "/build-2nd/freezegun-0.3.6/tests/test_class_import.py", line 83, in test_import_localtime
assert struct.tm_mday == 14
AssertionError:
time.struct_time(tm_year=2012, tm_mon=1, tm_mday=15, tm_hour=2, tm_min=0, tm_sec=0, tm_wday=6, tm_yday=15, tm_isdst=-1) = fake_localtime_function()
assert time.struct_time(tm_year=2012, tm_mon=1, tm_mday=15, tm_hour=2, tm_min=0, tm_sec=0, tm_wday=6, tm_yday=15, tm_isdst=-1).tm_year == 2012
assert time.struct_time(tm_year=2012, tm_mon=1, tm_mday=15, tm_hour=2, tm_min=0, tm_sec=0, tm_wday=6, tm_yday=15, tm_isdst=-1).tm_mon == 1
>> assert time.struct_time(tm_year=2012, tm_mon=1, tm_mday=15, tm_hour=2, tm_min=0, tm_sec=0, tm_wday=6, tm_yday=15, tm_isdst=-1).tm_mday == 14
[..]
The full build log is attached or can be viewed here:
https://reproducible.debian.net/debian/logs/unstable/amd64/freezegun_0.3.6-1.build2.log.gz
(Note the use of fake_localtime, which is going to vary under such extreme
timezones.)
Regards,
--
,''`.
: :' : Chris Lamb
`. `'` lamby at debian.org / chris-lamb.co.uk
`-
-------------- next part --------------
A non-text attachment was scrubbed...
Name: freezegun.0.3.6-1.logs.unstable.log.txt.gz
Type: application/octet-stream
Size: 7543 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/reproducible-builds/attachments/20161015/86a050cb/attachment.obj>
More information about the Reproducible-builds
mailing list