diff options
author | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2021-01-19 08:35:16 +0100 |
---|---|---|
committer | Carlton Gibson <carlton@noumenal.es> | 2021-02-10 10:20:54 +0100 |
commit | ec0ff406311de88f4e2a135d784363424fe602aa (patch) | |
tree | c1659b85ea145704a1b733d40a6a9a45e9332d0f /tests/handlers | |
parent | 9c6ba876928fd20194ac3238dc06aeae66d7bd50 (diff) | |
download | django-ec0ff406311de88f4e2a135d784363424fe602aa.tar.gz |
Fixed #32355 -- Dropped support for Python 3.6 and 3.7
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') |