summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2011-01-04 17:27:13 (GMT)
committerGeorg Brandl <georg@python.org>2011-01-04 17:27:13 (GMT)
commit3fb97ae0f7ebcc723c59e5fe0d2826bb9c595d6f (patch)
treefc2310aeca08f78a9dc90ef6ec76cfdd0fadf5ff /Lib
parent5da468f94adcf1eea2f1e29a668c82a34f4391df (diff)
downloadcpython-3fb97ae0f7ebcc723c59e5fe0d2826bb9c595d6f.zip
cpython-3fb97ae0f7ebcc723c59e5fe0d2826bb9c595d6f.tar.gz
cpython-3fb97ae0f7ebcc723c59e5fe0d2826bb9c595d6f.tar.bz2
Fix exception catching.
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 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