mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +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):
|
for t in (-2, -1, 0, 1):
|
||||||
try:
|
try:
|
||||||
tt = time.localtime(t)
|
tt = time.localtime(t)
|
||||||
except (OverflowError, ValueError):
|
except (OverflowError, OSError):
|
||||||
pass
|
pass
|
||||||
else:
|
else:
|
||||||
self.assertEqual(time.mktime(tt), t)
|
self.assertEqual(time.mktime(tt), t)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue