mirror of
https://github.com/python/cpython.git
synced 2025-08-30 05:35:08 +00:00
Issue #13847: Fix test_mktime(), time.localtime() now raises OSError
This commit is contained in:
parent
85fdfa85e1
commit
2cbae98ea4
1 changed files with 1 additions and 1 deletions
|
@ -309,7 +309,7 @@ class TimeTestCase(unittest.TestCase):
|
|||
for t in (-2, -1, 0, 1):
|
||||
try:
|
||||
tt = time.localtime(t)
|
||||
except (OverflowError, ValueError):
|
||||
except (OverflowError, OSError):
|
||||
pass
|
||||
else:
|
||||
self.assertEqual(time.mktime(tt), t)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue