Commits

Jason R. Coombs  committed b69f072

Fixed two issues for Python 2.4 compatibility. Tests now run again on Python 2.4

  • Participants
  • Parent commits 63e9105
  • Tags 0.6.26

Comments (0)

Files changed (2)

File setuptools/tests/server.py

             RequestHandlerClass=RequestRecorder):
         HTTPServer.__init__(self, server_address, RequestHandlerClass)
         threading.Thread.__init__(self)
-        self.daemon = True
+        self.setDaemon(True)
         self.requests = []
 
     def run(self):

File setuptools/tests/test_easy_install.py

         # 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