This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author martin.panter
Recipients Sean.Wang, martin.panter, paul.moore, steve.dower, tim.golden, zach.ware
Date 2015-11-02.22:37:59
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1446503880.29.0.297441651863.issue25534@psf.upfronthosting.co.za>
In-reply-to
Content
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).
History
Date User Action Args
2015-11-02 22:38:00martin.pantersetrecipients: + martin.panter, paul.moore, tim.golden, zach.ware, Sean.Wang, steve.dower
2015-11-02 22:38:00martin.pantersetmessageid: <1446503880.29.0.297441651863.issue25534@psf.upfronthosting.co.za>
2015-11-02 22:38:00martin.panterlinkissue25534 messages
2015-11-02 22:37:59martin.pantercreate