From ec0ff406311de88f4e2a135d784363424fe602aa Mon Sep 17 00:00:00 2001 From: Mariusz Felisiak Date: Tue, 19 Jan 2021 08:35:16 +0100 Subject: Fixed #32355 -- Dropped support for Python 3.6 and 3.7 --- tests/handlers/tests.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'tests/handlers') 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') -- cgit v1.3