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

Fixed #31521 -- Skipped test_parsing_rfc850 test on 32-bit systems.

This commit is contained in:
Hasan Ramezani 2020-04-29 23:22:41 +02:00 committed by Mariusz Felisiak
parent 33f7739108
commit f121621073

View File

@ -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