diff options
| author | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2019-03-20 13:44:30 +0100 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2019-03-20 13:46:31 +0100 |
| commit | 505785a71ddcc66f0dbf2b9b903881e894a17a17 (patch) | |
| tree | ad25aa9e12d83529b3812d08ef608f926f6e90a7 | |
| parent | 19ab698937af39553ab63b102c50bafbe8f6edc5 (diff) | |
[2.2.x] Fixed #30264 -- Fixed crash of test_parsing_year_less_than_70() on 32-bit systems.
Thanks Andreas Beckmann and Chris Lamb for the report.
Backport of c9888bc8ecb8943ef08090e3325dcbdac825eafc from master
| -rw-r--r-- | tests/utils_tests/test_http.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/utils_tests/test_http.py b/tests/utils_tests/test_http.py index aca825ef1f..1f1cc8cfe3 100644 --- a/tests/utils_tests/test_http.py +++ b/tests/utils_tests/test_http.py @@ -297,8 +297,8 @@ class HttpDateProcessingTests(unittest.TestCase): self.assertEqual(datetime.utcfromtimestamp(parsed), datetime(1994, 11, 6, 8, 49, 37)) def test_parsing_year_less_than_70(self): - parsed = parse_http_date('Sun Nov 6 08:49:37 0050') - self.assertEqual(datetime.utcfromtimestamp(parsed), datetime(2050, 11, 6, 8, 49, 37)) + parsed = parse_http_date('Sun Nov 6 08:49:37 0037') + self.assertEqual(datetime.utcfromtimestamp(parsed), datetime(2037, 11, 6, 8, 49, 37)) class EscapeLeadingSlashesTests(unittest.TestCase): |
