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

This commit is contained in:
Victor Stinner 2012-01-27 00:50:33 +01:00
parent 85fdfa85e1
commit 2cbae98ea4

View file

@ -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)