diff options
author | Alexander Belopolsky <alexander.belopolsky@gmail.com> | 2011-01-04 17:08:04 (GMT) |
---|---|---|
committer | Alexander Belopolsky <alexander.belopolsky@gmail.com> | 2011-01-04 17:08:04 (GMT) |
commit | ecebdc7469e73f9ca7d25b51df5a7840312e34ba (patch) | |
tree | c67d5a49b981109e137f3dc5cdef35ae52b12efc | |
parent | b9588b528a48302a4884d0500caec71f1c59280c (diff) | |
download | cpython-ecebdc7469e73f9ca7d25b51df5a7840312e34ba.zip cpython-ecebdc7469e73f9ca7d25b51df5a7840312e34ba.tar.gz cpython-ecebdc7469e73f9ca7d25b51df5a7840312e34ba.tar.bz2 |
Issue #8013: Fix time.ctime test failure on 32-bit platforms.
-rw-r--r-- | Lib/test/test_time.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 @@ 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: + except ValueError, OverflowError: # If mktime fails, ctime will fail too. This may happen # on some platforms. pass |