From 3fb97ae0f7ebcc723c59e5fe0d2826bb9c595d6f Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Tue, 4 Jan 2011 17:27:13 +0000 Subject: Fix exception catching. --- 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 9d14827..f2ce5cb 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, OverflowError: + except (ValueError, OverflowError): # If mktime fails, ctime will fail too. This may happen # on some platforms. pass -- cgit v0.12