#30264 closed Bug (fixed)
"OverflowError: timestamp out of range for platform time_t" test failure on 32-bit platforms
Reported by: | Chris Lamb | Owned by: | Mariusz Felisiak |
---|---|---|---|
Component: | Core (Other) | Version: | 2.2 |
Severity: | Release blocker | Keywords: | overflow |
Cc: | Triage Stage: | Ready for checkin | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
In Debian we are seeing the following test failure on 32-bit platforms (not on 64-bit):
====================================================================== ERROR: test_parsing_year_less_than_70 (utils_tests.test_http.HttpDateProcessingTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.7/unittest/case.py", line 59, in testPartExecutor yield File "/usr/lib/python3.7/unittest/case.py", line 615, in run testMethod() File "/build/python-django-2.2~beta1/tests/utils_tests/test_http.py", line 301, in test_parsing_year_less_than_70 self.assertEqual(datetime.utcfromtimestamp(parsed), datetime(2050, 11, 6, 8, 49, 37)) OverflowError: timestamp out of range for platform time_t
This affects (at least) 2.2 beta 1 and was added in https://github.com/django/django/commit/6b7f1c2530784ed6c6c1826688faaa08e3f786d9.
Original filed by Andreas Beckmann at https://bugs.debian.org/924784
Change History (6)
comment:1 by , 6 years ago
Component: | Testing framework → Core (Other) |
---|---|
Severity: | Normal → Release blocker |
Triage Stage: | Unreviewed → Accepted |
Version: | master → 2.2 |
comment:2 by , 6 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
comment:4 by , 6 years ago
Triage Stage: | Accepted → Ready for checkin |
---|
Note:
See TracTickets
for help on using tickets.
We should either skip the test on 32-bit or pick a smaller value.