[issue13312] test_time fails: strftime('%Y', y) for negative year
Florent Xicluna
report at bugs.python.org
Wed Nov 2 08:04:32 CET 2011
Florent Xicluna <florent.xicluna at gmail.com> added the comment:
It fails for very low negative years:
-2147481749 <= year <= -2147483648
(-1<<31) + 1900 <= year <= (-1<<31)
Every other value behaves correctly on this FreeBSD buildbot:
- (-1<<31) + 1900 < year < (+1<<31) : correctly formatted with '%Z'
- year < (-1<<31) : raises OverfowError
- year >= (+1<<31) : raises OverfowError
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue13312>
_______________________________________
More information about the Python-bugs-list
mailing list