From 20be53e5b51a3388454cb7d0604a03a20d884510 Mon Sep 17 00:00:00 2001 From: Berker Peksag Date: Mon, 14 Mar 2016 05:48:02 +0200 Subject: Issue #16181: cookiejar.http2time() now returns None if year is higher than datetime.MAXYEAR --- Lib/test/test_http_cookiejar.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Lib/test') diff --git a/Lib/test/test_http_cookiejar.py b/Lib/test/test_http_cookiejar.py index 50260ffe5ce..ea3c827fb7e 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" -- cgit v1.2.3