commit | 3fb97ae0f7ebcc723c59e5fe0d2826bb9c595d6f | [log] [tgz] |
---|---|---|
author | Georg Brandl <georg@python.org> | Tue Jan 04 17:27:13 2011 +0000 |
committer | Georg Brandl <georg@python.org> | Tue Jan 04 17:27:13 2011 +0000 |
tree | fc2310aeca08f78a9dc90ef6ec76cfdd0fadf5ff | |
parent | 5da468f94adcf1eea2f1e29a668c82a34f4391df [diff] [blame] |
Fix exception catching.
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 @@ 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