test_parsing_rfc850 test failure on 32-bit platforms.
As the test checks for date that is not supported there it simply overflows:
[ 405s] ERROR: test_parsing_rfc850 (utils_tests.test_http.HttpDateProcessingTests) [<object object at 0xa4e44cb0>] (rfc850str='Tuesday, 31-Dec-69 08:49:37 GMT')
[ 405s] ----------------------------------------------------------------------
[ 405s] Traceback (most recent call last):
[ 405s] File "/usr/lib/python3.8/unittest/case.py", line 60, in testPartExecutor
[ 405s] yield
[ 405s] File "/usr/lib/python3.8/unittest/case.py", line 582, in subTest
[ 405s] yield
[ 405s] File "/home/abuild/rpmbuild/BUILD/Django-3.0.5/tests/utils_tests/test_http.py", line 340, in test_parsing_rfc850
[ 405s] self.assertEqual(datetime.utcfromtimestamp(parsed), expected_date)
[ 405s] OverflowError: timestamp out of range for platform time_t
[ 405s]
[ 405s] ======================================================================
[ 405s] ERROR: test_parsing_rfc850 (utils_tests.test_http.HttpDateProcessingTests) [<object object at 0xa4e44cb0>] (rfc850str='Wednesday, 31-Dec-70 08:49:37 GMT')
[ 405s] ----------------------------------------------------------------------
[ 405s] Traceback (most recent call last):
[ 405s] File "/usr/lib/python3.8/unittest/case.py", line 60, in testPartExecutor
[ 405s] yield
[ 405s] File "/usr/lib/python3.8/unittest/case.py", line 582, in subTest
[ 405s] yield
[ 405s] File "/home/abuild/rpmbuild/BUILD/Django-3.0.5/tests/utils_tests/test_http.py", line 340, in test_parsing_rfc850
[ 405s] self.assertEqual(datetime.utcfromtimestamp(parsed), expected_date)
[ 405s] OverflowError: timestamp out of range for platform time_t
[ 405s]
[ 405s] ----------------------------------------------------------------------
I guess easiest is to skip those on if the platform is known to not support it.
Change History
(5)
Component: |
Testing framework → Core (Other)
|
Easy pickings: |
set
|
Summary: |
test_parsing_rfc850 fails on 32bit intel platforms → test_parsing_rfc850 test failure on 32-bit platforms.
|
Triage Stage: |
Unreviewed → Accepted
|
Type: |
Uncategorized → Cleanup/optimization
|
Version: |
3.0 → master
|
Has patch: |
set
|
Owner: |
changed from nobody to Hasan Ramezani
|
Status: |
new → assigned
|
Patch needs improvement: |
set
|
Resolution: |
→ fixed
|
Status: |
assigned → closed
|
Thanks, it's fixable (see similar ticket #30264). We can use dates from the previous century.