mirror of
https://github.com/django/django.git
synced 2025-07-17 16:19:12 +00:00
[3.0.x] Fixed #31521 -- Skipped test_parsing_rfc850 test on 32-bit systems.
Backport of f12162107327b88a2f1faaab15d048e2535ec642 from master
This commit is contained in:
parent
16dbeb2d51
commit
8e23b89ffd
@ -1,3 +1,4 @@
|
||||
import platform
|
||||
import unittest
|
||||
from datetime import datetime
|
||||
from unittest import mock
|
||||
@ -317,6 +318,7 @@ class HttpDateProcessingTests(unittest.TestCase):
|
||||
parsed = parse_http_date('Sun, 06 Nov 1994 08:49:37 GMT')
|
||||
self.assertEqual(datetime.utcfromtimestamp(parsed), datetime(1994, 11, 6, 8, 49, 37))
|
||||
|
||||
@unittest.skipIf(platform.architecture()[0] == '32bit', 'The Year 2038 problem.')
|
||||
@mock.patch('django.utils.http.datetime.datetime')
|
||||
def test_parsing_rfc850(self, mocked_datetime):
|
||||
mocked_datetime.side_effect = datetime
|
||||
|
Loading…
x
Reference in New Issue
Block a user