]> granicus.if.org Git - python/commit
Fix test_time on Windows
authorVictor Stinner <victor.stinner@gmail.com>
Thu, 10 Sep 2015 07:10:14 +0000 (09:10 +0200)
committerVictor Stinner <victor.stinner@gmail.com>
Thu, 10 Sep 2015 07:10:14 +0000 (09:10 +0200)
commit9c72f9b30a60d09c10b6cde23bd4b0546c6947af
tree7428046c934667df998da7d5412920b7c441ab36
parent4f1f6e4618fa4c054377f78425f07b1e4409c832
Fix test_time on Windows

* Filter values which would overflow on conversion to the C long type
  (for timeval.tv_sec).
* Adjust also the message of OverflowError on PyTime conversions
* test_time: add debug information if a timestamp conversion fails
Lib/test/test_time.py
Python/pytime.c