summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_httpservers.py
diff options
context:
space:
mode:
authorNick Coghlan <ncoghlan@gmail.com>2009-10-17 15:45:52 (GMT)
committerNick Coghlan <ncoghlan@gmail.com>2009-10-17 15:45:52 (GMT)
commitfd4903bf05705d73c8b97d945a50e4e03abad729 (patch)
treebb16bff4131523cb0ffe5de7004b5805eddc32e4 /Lib/test/test_httpservers.py
parent87c03b3108fd8108f7ab62fbcfd63aabf86c507b (diff)
downloadcpython-fd4903bf05705d73c8b97d945a50e4e03abad729.zip
cpython-fd4903bf05705d73c8b97d945a50e4e03abad729.tar.gz
cpython-fd4903bf05705d73c8b97d945a50e4e03abad729.tar.bz2
Move restoration of the os.environ object into the context manager where it belongs
Diffstat (limited to 'Lib/test/test_httpservers.py')
-rw-r--r--Lib/test/test_httpservers.py1
1 files changed, 0 insertions, 1 deletions
diff --git a/Lib/test/test_httpservers.py b/Lib/test/test_httpservers.py
index 73354e3..3ec0140 100644
--- a/Lib/test/test_httpservers.py
+++ b/Lib/test/test_httpservers.py
@@ -60,7 +60,6 @@ class BaseTestCase(unittest.TestCase):
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)