mirror of
https://github.com/python/cpython.git
synced 2025-09-27 02:39:58 +00:00
Fix exception catching.
This commit is contained in:
parent
5da468f94a
commit
3fb97ae0f7
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')
|
self.assertEqual(time.ctime(t), 'Sat Jan 1 00:00:00 2000')
|
||||||
try:
|
try:
|
||||||
bigval = time.mktime((10000, 1, 10) + (0,)*6)
|
bigval = time.mktime((10000, 1, 10) + (0,)*6)
|
||||||
except ValueError, OverflowError:
|
except (ValueError, OverflowError):
|
||||||
# If mktime fails, ctime will fail too. This may happen
|
# If mktime fails, ctime will fail too. This may happen
|
||||||
# on some platforms.
|
# on some platforms.
|
||||||
pass
|
pass
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue