]> granicus.if.org Git - python/commit
Issue #11188, #19748: mktime() returns -1 on error. On Linux, the tm_wday field
authorVictor Stinner <victor.stinner@gmail.com>
Fri, 21 Feb 2014 22:54:32 +0000 (23:54 +0100)
committerVictor Stinner <victor.stinner@gmail.com>
Fri, 21 Feb 2014 22:54:32 +0000 (23:54 +0100)
commit8c8b4e0ebf5f58fae2d10453cda9d4ee614794d9
tree35de5c42033d78e4e31ebbab01828232d0f35134
parent42a526c60f29fd1d70f1bd890dbcd0887319ebc6
Issue #11188, #19748: mktime() returns -1 on error. On Linux, the tm_wday field
is used as a sentinel () to detect if -1 is really an error or a valid
timestamp. On AIX, tm_wday is unchanged even on success and so cannot be used
as a sentinel.
Lib/test/test_time.py