mirror of
https://github.com/python/cpython.git
synced 2025-12-04 00:30:19 +00:00
Issue #19748: On AIX, time.mktime() now raises an OverflowError for year
outsize range [1902; 2037].
This commit is contained in:
parent
24a882bb7b
commit
1ac42614e3
3 changed files with 22 additions and 1 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue