diff options
author | Victor Stinner <victor.stinner@haypocalc.com> | 2012-01-26 23:50:33 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@haypocalc.com> | 2012-01-26 23:50:33 (GMT) |
commit | 2cbae98ea4cdde9cc67ad308d0def21b49ece5a9 (patch) | |
tree | 0ddd4356de04627662a3da73363a5863818fa9a1 /Lib/test/test_time.py | |
parent | 85fdfa85e191c03c1844dfdc20894d33e101eab1 (diff) | |
download | cpython-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.py | 2 |
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) |