diff options
Diffstat (limited to 'tests/requests')
| -rw-r--r-- | tests/requests/tests.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/requests/tests.py b/tests/requests/tests.py index 9e1cf19307..98cda31c1b 100644 --- a/tests/requests/tests.py +++ b/tests/requests/tests.py @@ -17,6 +17,7 @@ from django.test.utils import override_settings, str_prefix from django.utils import six from django.utils.unittest import skipIf from django.utils.http import cookie_date, urlencode +from django.utils.six.moves.urllib.parse import urlencode as original_urlencode from django.utils.timezone import utc @@ -493,8 +494,7 @@ class RequestsTests(SimpleTestCase): """ Test a POST with non-utf-8 payload encoding. """ - from django.utils.http import urllib_parse - payload = FakePayload(urllib_parse.urlencode({'key': 'España'.encode('latin-1')})) + payload = FakePayload(original_urlencode({'key': 'España'.encode('latin-1')})) request = WSGIRequest({ 'REQUEST_METHOD': 'POST', 'CONTENT_LENGTH': len(payload), |
