diff options
| author | Tom Christie | 2013-02-01 14:03:28 +0000 |
|---|---|---|
| committer | Tom Christie | 2013-02-01 14:03:28 +0000 |
| commit | f4f237e3ee02fef4fd5f389bf4fb3bbdd00173bd (patch) | |
| tree | 80b5d9b042e0d66fa16cfe071a2a345cd4fdfdd6 /rest_framework/tests/utils.py | |
| parent | d9c7b1c58523d63c8118d88f44ebfdf5f35e942a (diff) | |
| download | django-rest-framework-f4f237e3ee02fef4fd5f389bf4fb3bbdd00173bd.tar.bz2 | |
3.2, 3.3 compat
Diffstat (limited to 'rest_framework/tests/utils.py')
| -rw-r--r-- | rest_framework/tests/utils.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/rest_framework/tests/utils.py b/rest_framework/tests/utils.py index 3906adb9..4e6faac4 100644 --- a/rest_framework/tests/utils.py +++ b/rest_framework/tests/utils.py @@ -1,6 +1,6 @@ from django.test.client import RequestFactory, FakePayload from django.test.client import MULTIPART_CONTENT -from urlparse import urlparse +from rest_framework.compat import urlparse class RequestFactory(RequestFactory): @@ -14,7 +14,7 @@ class RequestFactory(RequestFactory): patch_data = self._encode_data(data, content_type) - parsed = urlparse(path) + parsed = urlparse.urlparse(path) r = { 'CONTENT_LENGTH': len(patch_data), 'CONTENT_TYPE': content_type, |
