summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Lib/test/test_httpservers.py1
-rw-r--r--Lib/test/test_support.py1
2 files changed, 1 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)
diff --git a/Lib/test/test_support.py b/Lib/test/test_support.py
index 2f3a378..048c527 100644
--- a/Lib/test/test_support.py
+++ b/Lib/test/test_support.py
@@ -576,6 +576,7 @@ class EnvironmentVarGuard(UserDict.DictMixin):
del self._environ[k]
else:
self._environ[k] = v
+ os.environ = self._environ
class DirsOnSysPath(object):