Commit 2cbae98e authored by Victor Stinner's avatar Victor Stinner

Issue #13847: Fix test_mktime(), time.localtime() now raises OSError

parent 85fdfa85
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment