Mercurial > cpython-lru_cache-weakref
comparison Lib/test/test_httpservers.py @ 79288:7b71c093ae81 3.3
Speed up test_httpservers by avoiding a one-second cleanup wait after each test case.
| author | Antoine Pitrou <solipsis@pitrou.net> |
|---|---|
| date | Sun, 30 Sep 2012 01:08:55 +0200 |
| parents | ee185c6b2880 247d3e3c08ca |
| children | 872ede983e7b ee34cb049a10 |
comparison
equal
deleted
inserted
replaced
| 79283:c3d90fb70247 | 79288:7b71c093ae81 |
|---|---|
| 60 self.thread.start() | 60 self.thread.start() |
| 61 self.server_started.wait() | 61 self.server_started.wait() |
| 62 | 62 |
| 63 def tearDown(self): | 63 def tearDown(self): |
| 64 self.thread.stop() | 64 self.thread.stop() |
| 65 self.thread = None | |
| 65 os.environ.__exit__() | 66 os.environ.__exit__() |
| 66 support.threading_cleanup(*self._threads) | 67 support.threading_cleanup(*self._threads) |
| 67 | 68 |
| 68 def request(self, uri, method='GET', body=None, headers={}): | 69 def request(self, uri, method='GET', body=None, headers={}): |
| 69 self.connection = http.client.HTTPConnection(self.HOST, self.PORT) | 70 self.connection = http.client.HTTPConnection(self.HOST, self.PORT) |
