From 1b9b6071393b5b40921c0f6bbf95fcceed8029d4 Mon Sep 17 00:00:00 2001 From: "Jason R. Coombs" Date: Sun, 8 Apr 2012 00:29:34 +0000 Subject: Fixed two issues for Python 2.4 compatibility. Tests now run again on Python 2.4 --HG-- branch : distribute extra : rebase_source : c6dc5ce8070ec42190d4d8eb6af28523d447f962 --- setuptools/tests/test_easy_install.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'setuptools/tests/test_easy_install.py') 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 -- cgit v1.2.3