aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--setuptools/tests/server.py2
-rw-r--r--setuptools/tests/test_easy_install.py3
2 files changed, 3 insertions, 2 deletions
diff --git a/setuptools/tests/server.py b/setuptools/tests/server.py
index 6b9fe6ac..7b5cacb9 100644
--- a/setuptools/tests/server.py
+++ b/setuptools/tests/server.py
@@ -67,7 +67,7 @@ class MockServer(HTTPServer, threading.Thread):
RequestHandlerClass=RequestRecorder):
HTTPServer.__init__(self, server_address, RequestHandlerClass)
threading.Thread.__init__(self)
- self.daemon = True
+ self.setDaemon(True)
self.requests = []
def run(self):
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