From ecebdc7469e73f9ca7d25b51df5a7840312e34ba Mon Sep 17 00:00:00 2001 From: Alexander Belopolsky Date: Tue, 4 Jan 2011 17:08:04 +0000 Subject: Issue #8013: Fix time.ctime test failure on 32-bit platforms. --- Lib/test/test_time.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/test/test_time.py b/Lib/test/test_time.py index 0674ede..9d14827 100644 --- a/Lib/test/test_time.py +++ b/Lib/test/test_time.py @@ -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 -- cgit v0.12