summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorClaude Paroz <claude@2xlibre.net>2012-08-13 11:34:40 +0200
committerClaude Paroz <claude@2xlibre.net>2012-08-13 11:54:21 +0200
commitd774ad752d9844cb7a28fe338d4d711c8576ee6f (patch)
treedf5096a8691015fd8a947808c6cb6eee8a4e346a /tests
parent5e958b958b4b27082a393decf64ec573fa7454b2 (diff)
[py3] Made csrf context processor return Unicode
Diffstat (limited to 'tests')
-rw-r--r--tests/regressiontests/csrf_tests/tests.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/regressiontests/csrf_tests/tests.py b/tests/regressiontests/csrf_tests/tests.py
index 52fd3ea1c7..c5b66a31d1 100644
--- a/tests/regressiontests/csrf_tests/tests.py
+++ b/tests/regressiontests/csrf_tests/tests.py
@@ -216,7 +216,7 @@ class CsrfViewMiddlewareTest(TestCase):
"""
req = self._get_GET_no_csrf_cookie_request()
resp = token_view(req)
- self.assertEqual("", resp.content)
+ self.assertEqual(resp.content, b'')
def test_token_node_empty_csrf_cookie(self):
"""