commit | ecebdc7469e73f9ca7d25b51df5a7840312e34ba | [log] [tgz] |
---|---|---|
author | Alexander Belopolsky <alexander.belopolsky@gmail.com> | Tue Jan 04 17:08:04 2011 +0000 |
committer | Alexander Belopolsky <alexander.belopolsky@gmail.com> | Tue Jan 04 17:08:04 2011 +0000 |
tree | c67d5a49b981109e137f3dc5cdef35ae52b12efc | |
parent | b9588b528a48302a4884d0500caec71f1c59280c [diff] |
Issue #8013: Fix time.ctime test failure on 32-bit platforms.
diff --git a/Lib/test/test_time.py b/Lib/test/test_time.py index 0674ede..9d14827 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: + except ValueError, OverflowError: # If mktime fails, ctime will fail too. This may happen # on some platforms. pass