Skip to content

Commit

Permalink
[3.0.x] Fixed #31521 -- Skipped test_parsing_rfc850 test on 32-bit sy…
Browse files Browse the repository at this point in the history
…stems.

Backport of f121621 from master
  • Loading branch information
hramezani authored and felixxm committed Apr 30, 2020
1 parent 16dbeb2 commit 8e23b89
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/utils_tests/test_http.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import platform
import unittest
from datetime import datetime
from unittest import mock
Expand Down Expand Up @@ -317,6 +318,7 @@ def test_parsing_rfc1123(self):
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
Expand Down

0 comments on commit 8e23b89

Please sign in to comment.