summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorBerker Peksag <berker.peksag@gmail.com>2016-03-14 03:48:02 (GMT)
committerBerker Peksag <berker.peksag@gmail.com>2016-03-14 03:48:02 (GMT)
commit20be53e5b51a3388454cb7d0604a03a20d884510 (patch)
treeca6e0e04ab14a0bd57ab3577e2d15e82ee7771f8 /Lib/test
parentf2b9a398133a291a6f0fd42d8a9e42b8ded605fb (diff)
downloadcpython-20be53e5b51a3388454cb7d0604a03a20d884510.zip
cpython-20be53e5b51a3388454cb7d0604a03a20d884510.tar.gz
cpython-20be53e5b51a3388454cb7d0604a03a20d884510.tar.bz2
Issue #16181: cookiejar.http2time() now returns None if year is higher than datetime.MAXYEAR
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_http_cookiejar.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/test/test_http_cookiejar.py b/Lib/test/test_http_cookiejar.py
index 50260ff..ea3c827 100644
--- a/Lib/test/test_http_cookiejar.py
+++ b/Lib/test/test_http_cookiejar.py
@@ -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"