diff options
| author | Tim Graham <timograham@gmail.com> | 2014-12-30 10:23:42 -0500 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2014-12-30 10:23:42 -0500 |
| commit | df3cc53fda8579fdeea84a78650f2d189f7b2c75 (patch) | |
| tree | b0c086f7964e1ca2377207d4adb75c267b08d66b /tests/requests | |
| parent | c6b12bc995cfd4e88169908feaf341e2daa44b7a (diff) | |
Fixed #23450 -- Fixed transient failure of requests...test_far_expiration.
Diffstat (limited to 'tests/requests')
| -rw-r--r-- | tests/requests/tests.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/requests/tests.py b/tests/requests/tests.py index 2f3bace5d3..bb36af3747 100644 --- a/tests/requests/tests.py +++ b/tests/requests/tests.py @@ -201,7 +201,11 @@ class RequestsTests(SimpleTestCase): response = HttpResponse() response.set_cookie('datetime', expires=datetime(2028, 1, 1, 4, 5, 6)) datetime_cookie = response.cookies['datetime'] - self.assertEqual(datetime_cookie['expires'], 'Sat, 01-Jan-2028 04:05:06 GMT') + self.assertIn( + datetime_cookie['expires'], + # Slight time dependency; refs #23450 + ('Sat, 01-Jan-2028 04:05:06 GMT', 'Sat, 01-Jan-2028 04:05:07 GMT') + ) def test_max_age_expiration(self): "Cookie will expire if max_age is provided" |
