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

alexander.belopolsky python-checkins at python.org
Tue Jan 4 18:08:04 CET 2011


Author: alexander.belopolsky
Date: Tue Jan 4 18:08:04 2011
New Revision: 87737
Log:
Issue #8013: Fix time.ctime test failure on 32-bit platforms.
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:08:04 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:
+ 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

AltStyle によって変換されたページ (->オリジナル) /