summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_time.py2
1 files changed, 1 insertions, 1 deletions
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