diff options
author | Victor Stinner <victor.stinner@haypocalc.com> | 2012-01-29 23:23:32 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@haypocalc.com> | 2012-01-29 23:23:32 (GMT) |
commit | 2d6251c7f7cf059eb80d5e853399732b9f74509c (patch) | |
tree | 55771edcbaa2726d7a7074498068ae85954d41d5 | |
parent | a2477208c8bb94fe109f46b30d77d60276dfebe2 (diff) | |
download | cpython-2d6251c7f7cf059eb80d5e853399732b9f74509c.zip cpython-2d6251c7f7cf059eb80d5e853399732b9f74509c.tar.gz cpython-2d6251c7f7cf059eb80d5e853399732b9f74509c.tar.bz2 |
Issue #13847: Fix test_time, time.gmtime() doesn't use localtime()
On Windows, localtime(-1) fails, but not gmtime(1).
-rw-r--r-- | Lib/test/test_time.py | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/Lib/test/test_time.py b/Lib/test/test_time.py index e3298d5..f299266 100644 --- a/Lib/test/test_time.py +++ b/Lib/test/test_time.py @@ -361,7 +361,6 @@ class TimeTestCase(unittest.TestCase): self.skipTest("unable to find an invalid time_t value") self.assertRaises(OSError, time.localtime, invalid_time_t) - self.assertRaises(OSError, time.gmtime, invalid_time_t) self.assertRaises(OSError, time.ctime, invalid_time_t) class TestLocale(unittest.TestCase): |