Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Import urlparse

Maciek Jabłoński1a6dc2d50c58
diff --git a/tests/utils.py b/tests/utils.py
index 16ebeb3498..8cb0135b73 100644
--- a/tests/utils.py
+++ b/tests/utils.py
@@ -1,4 +1,7 @@
-from urlparse import urlparse
+try:
+ from urllib.parse import urlparse
+except ImportError:
+ from urlparse import urlparse
def get_redirect_location(response):