[issue13312] test_time fails: strftime('%Y', y) for negative year

Florent Xicluna report at bugs.python.org
Wed Nov 2 08:09:11 CET 2011


Florent Xicluna <florent.xicluna at gmail.com> added the comment:

It fails for very low negative years:
  -2147483648 <= year < -2147481748 
  (-1<<31)    <= year < (-1<<31) + 1900 

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