#31521: test_parsing_rfc850 fails on 32bit intel platforms
---------------------------------------------+------------------------
Reporter: scarabeusiv | Owner: nobody
Type: Uncategorized | Status: new
Component: Testing framework | Version: 3.0
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
---------------------------------------------+------------------------
As the test checks for date that is not supported there it simply
overflows:
{{{
#!python
[ 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.
--
Ticket URL: <https://code.djangoproject.com/ticket/31521>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/054.2ff005dfd35ce9920ecf8bf305cf0e62%40djangoproject.com.