8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6398eba commit 555952cCopy full SHA for 555952c
tests/handlers/tests.py
@@ -88,7 +88,10 @@ def test_invalid_unicode_cookie(self):
88
environ = RequestFactory().get('/').environ
89
environ['HTTP_COOKIE'] = 'x=W\x03c(h]\x8e'
90
request = WSGIRequest(environ)
91
- self.assertEqual(request.COOKIES, {})
+ # We don't test COOKIES content, as the result might differ between
92
+ # Python version because parsing invalid content became stricter in
93
+ # latest versions.
94
+ self.assertIsInstance(request.COOKIES, dict)
95
96
97
class TransactionsPerRequestTests(TransactionTestCase):
0 commit comments