[issue13309] test_time fails: time data 'LMT' does not match format '%Z'
Florent Xicluna
report at bugs.python.org
Tue Nov 1 17:40:16 CET 2011
Florent Xicluna <florent.xicluna at gmail.com> added the comment:
It seems that "mktime" is buggy on Gentoo.
You can try to reset its state in some way before to retry strftime:
t = time.gmtime(time.time())
s = time.strftime('%Z', t)
print(s)
time.mktime((-1, 1, 1, 0, 0, 0, -1, -1, -1))
s = time.strftime('%Z', t)
print(s)
time.mktime((1, 1, 1, 0, 0, 0, 0, 0, -1))
s = time.strftime('%Z', t)
print(s)
I guess it could output:
SAST
LMT
SAST
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue13309>
_______________________________________
More information about the Python-bugs-list
mailing list