Kaydet (Commit) 3fb97ae0 authored tarafından Georg Brandl's avatar Georg Brandl

Fix exception catching.

üst 5da468f9
...@@ -142,7 +142,7 @@ class TimeTestCase(unittest.TestCase): ...@@ -142,7 +142,7 @@ class TimeTestCase(unittest.TestCase):
self.assertEqual(time.ctime(t), 'Sat Jan 1 00:00:00 2000') self.assertEqual(time.ctime(t), 'Sat Jan 1 00:00:00 2000')
try: try:
bigval = time.mktime((10000, 1, 10) + (0,)*6) bigval = time.mktime((10000, 1, 10) + (0,)*6)
except ValueError, OverflowError: except (ValueError, OverflowError):
# If mktime fails, ctime will fail too. This may happen # If mktime fails, ctime will fail too. This may happen
# on some platforms. # on some platforms.
pass pass
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment