diff options
author | Hasan Ramezani <hasan.r67@gmail.com> | 2020-04-29 23:22:41 +0200 |
---|---|---|
committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2020-04-30 07:13:25 +0200 |
commit | 8e23b89ffd103d127b0cf6db9d7e9d75a8e50452 (patch) | |
tree | e2c7f2f7a5b8ab2badd4b25342e77ada89005595 | |
parent | 16dbeb2d5120cb59ac12d4bd73305335fdbedfcc (diff) | |
download | django-8e23b89ffd103d127b0cf6db9d7e9d75a8e50452.tar.gz |
[3.0.x] Fixed #31521 -- Skipped test_parsing_rfc850 test on 32-bit systems.
Backport of f12162107327b88a2f1faaab15d048e2535ec642 from master
-rw-r--r-- | tests/utils_tests/test_http.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/utils_tests/test_http.py b/tests/utils_tests/test_http.py index ed6824429d..aa9f194a8a 100644 --- a/tests/utils_tests/test_http.py +++ b/tests/utils_tests/test_http.py @@ -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 |