summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_time.py
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2012-01-29 23:23:32 (GMT)
committerVictor Stinner <victor.stinner@haypocalc.com>2012-01-29 23:23:32 (GMT)
commit2d6251c7f7cf059eb80d5e853399732b9f74509c (patch)
tree55771edcbaa2726d7a7074498068ae85954d41d5 /Lib/test/test_time.py
parenta2477208c8bb94fe109f46b30d77d60276dfebe2 (diff)
downloadcpython-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).
Diffstat (limited to 'Lib/test/test_time.py')
-rw-r--r--Lib/test/test_time.py1
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):