]> granicus.if.org Git - python/commitdiff
Fix exception catching.
authorGeorg Brandl <georg@python.org>
Tue, 4 Jan 2011 17:27:13 +0000 (17:27 +0000)
committerGeorg Brandl <georg@python.org>
Tue, 4 Jan 2011 17:27:13 +0000 (17:27 +0000)
Lib/test/test_time.py

index 9d14827597d76abe9b7ae618140f0f1962dc7db5..f2ce5cb1512f59d736599c8448f293d1281da044 100644 (file)
@@ -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