summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_time.py
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2014-02-21 08:27:17 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2014-02-21 08:27:17 (GMT)
commit1ac42614e3910232604fdb9de7b23ce0752bb635 (patch)
tree85d9842322910120c070421c5d78d2f89b0ef667 /Lib/test/test_time.py
parent24a882bb7bc638644b9e66a082439416bfbcf66c (diff)
downloadcpython-1ac42614e3910232604fdb9de7b23ce0752bb635.zip
cpython-1ac42614e3910232604fdb9de7b23ce0752bb635.tar.gz
cpython-1ac42614e3910232604fdb9de7b23ce0752bb635.tar.bz2
Issue #19748: On AIX, time.mktime() now raises an OverflowError for year
outsize range [1902; 2037].
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 4bd1757..2aa2296 100644
--- a/Lib/test/test_time.py
+++ b/Lib/test/test_time.py
@@ -228,7 +228,7 @@ class TimeTestCase(unittest.TestCase):
self.assertEqual(time.ctime(t), 'Sun Sep 16 01:03:52 1973')
t = time.mktime((2000, 1, 1, 0, 0, 0, 0, 0, -1))
self.assertEqual(time.ctime(t), 'Sat Jan 1 00:00:00 2000')
- for year in [-100, 100, 1000, 2000, 10000]:
+ for year in [-100, 100, 1000, 2000, 2050, 10000]:
try:
testval = time.mktime((year, 1, 10) + (0,)*6)
except (ValueError, OverflowError):