diff options
Diffstat (limited to 'tests/handlers')
| -rw-r--r-- | tests/handlers/tests.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/handlers/tests.py b/tests/handlers/tests.py index 1d445cd38c..dd727cde32 100644 --- a/tests/handlers/tests.py +++ b/tests/handlers/tests.py @@ -5,7 +5,6 @@ from django.db import close_old_connections, connection from django.test import ( RequestFactory, SimpleTestCase, TransactionTestCase, override_settings, ) -from django.utils.version import PY37 class HandlerTests(SimpleTestCase): @@ -183,7 +182,7 @@ class HandlerRequestTests(SimpleTestCase): def test_invalid_urls(self): response = self.client.get('~%A9helloworld') self.assertEqual(response.status_code, 404) - self.assertEqual(response.context['request_path'], '/~%25A9helloworld' if PY37 else '/%7E%25A9helloworld') + self.assertEqual(response.context['request_path'], '/~%25A9helloworld') response = self.client.get('d%aao%aaw%aan%aal%aao%aaa%aad%aa/') self.assertEqual(response.context['request_path'], '/d%25AAo%25AAw%25AAn%25AAl%25AAo%25AAa%25AAd%25AA') |
