[Python-checkins] distutils2: Make the PyPI mock server always power off.

tarek.ziade python-checkins at python.org
Sun Aug 8 11:50:45 CEST 2010


tarek.ziade pushed 01cb51430c05 to distutils2:

http://hg.python.org/distutils2/rev/01cb51430c05
changeset:   411:01cb51430c05
user:        ?ric Araujo <merwok at netwok.org>
date:        Sat Jul 31 14:57:53 2010 +0200
summary:     Make the PyPI mock server always power off.
files:       src/distutils2/tests/pypi_server.py

diff --git a/src/distutils2/tests/pypi_server.py b/src/distutils2/tests/pypi_server.py
--- a/src/distutils2/tests/pypi_server.py
+++ b/src/distutils2/tests/pypi_server.py
@@ -7,8 +7,6 @@
 
 import Queue
 import threading
-import time
-import urllib2
 from BaseHTTPServer import HTTPServer
 from SimpleHTTPServer import SimpleHTTPRequestHandler
 import os.path
@@ -41,8 +39,8 @@
         self.pypi.start()
 
     def tearDown(self):
+        self.pypi.stop()
         super(PyPIServerTestCase, self).tearDown()
-        self.pypi.stop()
 
 class PyPIServer(threading.Thread):
     """PyPI Mocked server.

--
Repository URL: http://hg.python.org/distutils2


More information about the Python-checkins mailing list