commit | 2cbae98ea4cdde9cc67ad308d0def21b49ece5a9 | [log] [tgz] |
---|---|---|
author | Victor Stinner <victor.stinner@haypocalc.com> | Fri Jan 27 00:50:33 2012 +0100 |
committer | Victor Stinner <victor.stinner@haypocalc.com> | Fri Jan 27 00:50:33 2012 +0100 |
tree | 0ddd4356de04627662a3da73363a5863818fa9a1 | |
parent | 85fdfa85e191c03c1844dfdc20894d33e101eab1 [diff] [blame] |
Issue #13847: Fix test_mktime(), time.localtime() now raises OSError
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 @@ 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)