mirror of
https://github.com/python/cpython.git
synced 2025-07-16 07:45:20 +00:00
Issue #8013: Fix time.ctime test failure on 32-bit platforms.
This commit is contained in:
parent
b9588b528a
commit
ecebdc7469
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue