]> granicus.if.org Git - python/commitdiff
Issue #13847: Fix test_time, time.gmtime() doesn't use localtime()
authorVictor Stinner <victor.stinner@haypocalc.com>
Sun, 29 Jan 2012 23:23:32 +0000 (00:23 +0100)
committerVictor Stinner <victor.stinner@haypocalc.com>
Sun, 29 Jan 2012 23:23:32 +0000 (00:23 +0100)
On Windows, localtime(-1) fails, but not gmtime(1).

Lib/test/test_time.py

index e3298d5e3d21b189b0db9d4b2a6eecce8f3580c7..f299266ed0c97e99d2d4ccdbdb4f19727ae8fdbb 100644 (file)
@@ -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):