summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/handlers/tests.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/handlers/tests.py b/tests/handlers/tests.py
index d9d2487396..39e08f467a 100644
--- a/tests/handlers/tests.py
+++ b/tests/handlers/tests.py
@@ -88,7 +88,10 @@ class HandlerTests(TestCase):
environ = RequestFactory().get('/').environ
environ['HTTP_COOKIE'] = 'x=W\x03c(h]\x8e'
request = WSGIRequest(environ)
- self.assertEqual(request.COOKIES, {})
+ # We don't test COOKIES content, as the result might differ between
+ # Python version because parsing invalid content became stricter in
+ # latest versions.
+ self.assertIsInstance(request.COOKIES, dict)
class TransactionsPerRequestTests(TransactionTestCase):