summaryrefslogtreecommitdiff
path: root/tests/handlers
diff options
context:
space:
mode:
authorClaude Paroz <claude@2xlibre.net>2017-01-11 23:17:25 +0100
committerClaude Paroz <claude@2xlibre.net>2017-01-20 08:44:31 +0100
commitdc8834cad41aa407f402dc54788df3cd37ab3e22 (patch)
treef44864ba7a64c614f00a3d2ad8548ce479e59e1e /tests/handlers
parentbf1c9570270b46e9e92b256fb9be394258029bbf (diff)
downloaddjango-dc8834cad41aa407f402dc54788df3cd37ab3e22.tar.gz
Refs #23919 -- Removed unneeded force_str calls
Diffstat (limited to 'tests/handlers')
-rw-r--r--tests/handlers/tests.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/tests/handlers/tests.py b/tests/handlers/tests.py
index d7cfaadf62..ffb8a1f145 100644
--- a/tests/handlers/tests.py
+++ b/tests/handlers/tests.py
@@ -7,7 +7,6 @@ from django.db import close_old_connections, connection
from django.test import (
RequestFactory, SimpleTestCase, TransactionTestCase, override_settings,
)
-from django.utils.encoding import force_str
try:
from http import HTTPStatus
@@ -65,10 +64,7 @@ class HandlerTests(SimpleTestCase):
raw_cookie = 'want="café"'.encode('utf-8').decode('iso-8859-1')
environ['HTTP_COOKIE'] = raw_cookie
request = WSGIRequest(environ)
- # If would be nicer if request.COOKIES returned unicode values.
- # However the current cookie parser doesn't do this and fixing it is
- # much more work than fixing #20557. Feel free to remove force_str()!
- self.assertEqual(request.COOKIES['want'], force_str("café"))
+ self.assertEqual(request.COOKIES['want'], "café")
def test_invalid_unicode_cookie(self):
"""