Mercurial > cpython-lru_cache-weakref
diff Lib/test/test_httpservers.py @ 56565:b818a7a70a47 legacy-trunk
Move restoration of the os.environ object into the context manager where it belongs
| author | Nick Coghlan <ncoghlan@gmail.com> |
|---|---|
| date | Sat, 17 Oct 2009 15:45:52 +0000 |
| parents | 81433a676a8b |
| children | 269f1d9c86cd |
line wrap: on
line diff
--- a/Lib/test/test_httpservers.py Sat Oct 17 15:23:08 2009 +0000 +++ b/Lib/test/test_httpservers.py Sat Oct 17 15:45:52 2009 +0000 @@ -60,7 +60,6 @@ self.lock.release() self.thread.stop() os.environ.__exit__() - os.environ = os.environ._environ def request(self, uri, method='GET', body=None, headers={}): self.connection = httplib.HTTPConnection('localhost', self.PORT)
