[issue35317] test_email: test_localtime_daylight_false_dst_true() fails depending on the timezone
STINNER Victor
report at bugs.python.org
Mon Nov 26 10:48:18 EST 2018
STINNER Victor <vstinner at redhat.com> added the comment:
I'm able to reproduce the issue on FreeBSD 12.0-RC2:
vstinner at freebsd$ TZ=CET ./python -m test test_email -m 'test_localtime_daylight_*' -v
(...)
Tests result: SUCCESS
vstinner at freebsd$ TZ=UTC ./python -m test test_email -m 'test_localtime_daylight_*' -v
(...)
======================================================================
ERROR: test_localtime_daylight_false_dst_true (test.test_email.test_utils.LocaltimeTests)
----------------------------------------------------------------------
(...)
File "/usr/home/vstinner/prog/python/master/Lib/email/utils.py", line 361, in localtime
seconds = time.mktime(tm)
OverflowError: mktime argument out of range
======================================================================
ERROR: test_localtime_daylight_true_dst_true (test.test_email.test_utils.LocaltimeTests)
----------------------------------------------------------------------
(...)
File "/usr/home/vstinner/prog/python/master/Lib/email/utils.py", line 361, in localtime
seconds = time.mktime(tm)
OverflowError: mktime argument out of range
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue35317>
_______________________________________
More information about the Python-bugs-list
mailing list