[Python-checkins] cpython: Issue #13847: Fix test_time, time.gmtime() doesn't use localtime()

victor.stinner python-checkins at python.org
Mon Jan 30 00:23:32 CET 2012


http://hg.python.org/cpython/rev/5b42aefb8969
changeset:   74683:5b42aefb8969
user:        Victor Stinner <victor.stinner at haypocalc.com>
date:        Mon Jan 30 00:23:32 2012 +0100
summary:
  Issue #13847: Fix test_time, time.gmtime() doesn't use localtime()

On Windows, localtime(-1) fails, but not gmtime(1).

files:
  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
--- a/Lib/test/test_time.py
+++ b/Lib/test/test_time.py
@@ -361,7 +361,6 @@
             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):

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list