Source: freezegun Version: 0.3.6-1 Severity: serious Justification: fails to build from source User: [email protected] Usertags: ftbfs timezones X-Debbugs-Cc: [email protected]
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
`. `'` [email protected] / chris-lamb.co.uk
`-
freezegun.0.3.6-1.logs.unstable.log.txt.gz
Description: Binary data

