Martin Panter added the comment: I think your test file’s time is lost on the web server. On Linux it is pretty easy to make a file with an arbitrary time; maybe Windows has an equivalent:
$ touch -d "1 Jan 1900" test I experimented with Wine, and it seems gmtime() raises ValueError on Python 2 and OSError on Python 3 for negative times, but under Linux negative times are handled successfully. (Wine seems to wrap the st_mtime field to a 32-bit unsigned value though, so I am unable to reproduce the original problem.) The “time” module documentation says “The functions in this module may not handle dates and times before the epoch”, so maybe the HTTP module should be fixed to handle a ValueError (or OSError on Python 3). ---------- components: +Windows nosy: +martin.panter, paul.moore, steve.dower, tim.golden, zach.ware stage: -> needs patch type: crash -> behavior _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue25534> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com