diff options
author | Claude Paroz <claude@2xlibre.net> | 2017-01-11 23:17:25 +0100 |
---|---|---|
committer | Claude Paroz <claude@2xlibre.net> | 2017-01-20 08:44:31 +0100 |
commit | dc8834cad41aa407f402dc54788df3cd37ab3e22 (patch) | |
tree | f44864ba7a64c614f00a3d2ad8548ce479e59e1e /tests/handlers | |
parent | bf1c9570270b46e9e92b256fb9be394258029bbf (diff) | |
download | django-dc8834cad41aa407f402dc54788df3cd37ab3e22.tar.gz |
Refs #23919 -- Removed unneeded force_str calls
Diffstat (limited to 'tests/handlers')
-rw-r--r-- | tests/handlers/tests.py | 6 |
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): """ |