aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/tests/test_easy_install.py
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2012-04-08 00:29:34 +0000
committerJason R. Coombs <jaraco@jaraco.com>2012-04-08 00:29:34 +0000
commit1b9b6071393b5b40921c0f6bbf95fcceed8029d4 (patch)
tree907f1d20acaa891739de2426895280c66c43da21 /setuptools/tests/test_easy_install.py
parent94f0f93eb75b4ad956a1a1d602cfcc2405268b9d (diff)
downloadexternal_python_setuptools-1b9b6071393b5b40921c0f6bbf95fcceed8029d4.tar.gz
external_python_setuptools-1b9b6071393b5b40921c0f6bbf95fcceed8029d4.tar.bz2
external_python_setuptools-1b9b6071393b5b40921c0f6bbf95fcceed8029d4.zip
Fixed two issues for Python 2.4 compatibility. Tests now run again on Python 2.40.6.26
--HG-- branch : distribute extra : rebase_source : c6dc5ce8070ec42190d4d8eb6af28523d447f962
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