mirror of
https://github.com/python/cpython.git
synced 2025-08-29 13:15:11 +00:00
Issue #16181: cookiejar.http2time() now returns None if year is higher than datetime.MAXYEAR
This commit is contained in:
parent
f2b9a39813
commit
20be53e5b5
3 changed files with 11 additions and 1 deletions
|
@ -91,6 +91,10 @@ class DateTimeTests(unittest.TestCase):
|
|||
'01-01-1980 25:00:00',
|
||||
'01-01-1980 00:61:00',
|
||||
'01-01-1980 00:00:62',
|
||||
'08-Oct-3697739',
|
||||
'08-01-3697739',
|
||||
'09 Feb 19942632 22:23:32 GMT',
|
||||
'Wed, 09 Feb 1994834 22:23:32 GMT',
|
||||
]:
|
||||
self.assertIsNone(http2time(test),
|
||||
"http2time(%s) is not None\n"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue