[Python-checkins] r87739 - python/branches/py3k/Lib/test/test_time.py

georg.brandl python-checkins at python.org
Tue Jan 4 18:27:13 CET 2011


Author: georg.brandl
Date: Tue Jan  4 18:27:13 2011
New Revision: 87739

Log:
Fix exception catching.

Modified:
   python/branches/py3k/Lib/test/test_time.py

Modified: python/branches/py3k/Lib/test/test_time.py
==============================================================================
--- python/branches/py3k/Lib/test/test_time.py	(original)
+++ python/branches/py3k/Lib/test/test_time.py	Tue Jan  4 18:27:13 2011
@@ -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


More information about the Python-checkins mailing list