mirror of
https://github.com/python/cpython.git
synced 2026-01-04 14:32:21 +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 @@ def test_mktime(self):
|
|||
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