]> granicus.if.org Git - python/commitdiff
Issue #8013: Fix time.ctime test failure on 32-bit platforms.
authorAlexander Belopolsky <alexander.belopolsky@gmail.com>
Tue, 4 Jan 2011 17:08:04 +0000 (17:08 +0000)
committerAlexander Belopolsky <alexander.belopolsky@gmail.com>
Tue, 4 Jan 2011 17:08:04 +0000 (17:08 +0000)
Lib/test/test_time.py

index 0674ede64ca1ce59005e4693cba9a3f669ecff8c..9d14827597d76abe9b7ae618140f0f1962dc7db5 100644 (file)
@@ -142,7 +142,7 @@ class TimeTestCase(unittest.TestCase):
         self.assertEqual(time.ctime(t), 'Sat Jan  1 00:00:00 2000')
         try:
             bigval = time.mktime((10000, 1, 10) + (0,)*6)
-        except ValueError:
+        except ValueError, OverflowError:
             # If mktime fails, ctime will fail too.  This may happen
             # on some platforms.
             pass