Commits

Christophe Combelles committed 7b77853

Fix for python2.4

  • Participants
  • Parent commits 3539e3a
  • Branches 0.6-maintenance

Comments (0)

Files changed (1)

setuptools/tests/server.py

     def stop(self):
         """self.shutdown is not supported on python < 2.6"""
         self._run = False
-        urllib2.urlopen('http://127.0.0.1:%s/' % self.server_address[1])
+        urllib2.urlopen('http://127.0.0.1:%s/' % self.server_port)
         self.thread.join()
 
     def base_url(self):
-        port = self.server_address[1]
+        port = self.server_port
         return 'http://127.0.0.1:%s/setuptools/tests/indexes/' % port