1
0
mirror of https://github.com/django/django.git synced 2024-12-22 17:16:24 +00:00

Fixed #30264 -- Fixed crash of test_parsing_year_less_than_70() on 32-bit systems.

Thanks Andreas Beckmann and Chris Lamb for the report.
This commit is contained in:
Mariusz Felisiak 2019-03-20 13:44:30 +01:00 committed by GitHub
parent 418263c457
commit c9888bc8ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -293,8 +293,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):