From: Victor Stinner Date: Sun, 29 Jan 2012 23:23:32 +0000 (+0100) Subject: Issue #13847: Fix test_time, time.gmtime() doesn't use localtime() X-Git-Tag: v3.3.0a1~280 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2d6251c7f7cf059eb80d5e853399732b9f74509c;p=thirdparty%2FPython%2Fcpython.git Issue #13847: Fix test_time, time.gmtime() doesn't use localtime() On Windows, localtime(-1) fails, but not gmtime(1). --- diff --git a/Lib/test/test_time.py b/Lib/test/test_time.py index e3298d5e3d21..f299266ed0c9 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):