aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/tests/test_easy_install.py
diff options
context:
space:
mode:
Diffstat (limited to 'setuptools/tests/test_easy_install.py')
-rw-r--r--setuptools/tests/test_easy_install.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/setuptools/tests/test_easy_install.py b/setuptools/tests/test_easy_install.py
index 9cf3441d..3f9b7724 100644
--- a/setuptools/tests/test_easy_install.py
+++ b/setuptools/tests/test_easy_install.py
@@ -273,7 +273,8 @@ class TestSetupRequires(unittest.TestCase):
# set up a server which will simulate an alternate package index.
p_index = setuptools.tests.server.MockServer()
p_index.start()
- p_index_loc = urlparse.urlparse(p_index.url).netloc
+ netloc = 1
+ p_index_loc = urlparse.urlparse(p_index.url)[netloc]
# I realize this is all-but-impossible to read, because it was
# ported from some well-factored, safe code using 'with'. If you