summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_time.py
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2012-01-26 23:50:33 (GMT)
committerVictor Stinner <victor.stinner@haypocalc.com>2012-01-26 23:50:33 (GMT)
commit2cbae98ea4cdde9cc67ad308d0def21b49ece5a9 (patch)
tree0ddd4356de04627662a3da73363a5863818fa9a1 /Lib/test/test_time.py
parent85fdfa85e191c03c1844dfdc20894d33e101eab1 (diff)
downloadcpython-2cbae98ea4cdde9cc67ad308d0def21b49ece5a9.zip
cpython-2cbae98ea4cdde9cc67ad308d0def21b49ece5a9.tar.gz
cpython-2cbae98ea4cdde9cc67ad308d0def21b49ece5a9.tar.bz2
Issue #13847: Fix test_mktime(), time.localtime() now raises OSError
Diffstat (limited to 'Lib/test/test_time.py')
-rw-r--r--Lib/test/test_time.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_time.py b/Lib/test/test_time.py
index 0533895..292cb85 100644
--- a/Lib/test/test_time.py
+++ b/Lib/test/test_time.py
@@ -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)