summaryrefslogtreecommitdiffstats
path: root/Lib/distutils
diff options
context:
space:
mode:
authorTarek Ziadé <ziade.tarek@gmail.com>2009-04-25 12:39:56 (GMT)
committerTarek Ziadé <ziade.tarek@gmail.com>2009-04-25 12:39:56 (GMT)
commit23336083d3ad050d6389d4696147e4e0c71536cb (patch)
tree2a3f240a634a767216b93eddc40b94b3f1fe8aa5 /Lib/distutils
parentde8a710849827f8e55e73d59bca41d2594a9db99 (diff)
downloadcpython-23336083d3ad050d6389d4696147e4e0c71536cb.zip
cpython-23336083d3ad050d6389d4696147e4e0c71536cb.tar.gz
cpython-23336083d3ad050d6389d4696147e4e0c71536cb.tar.bz2
Merged revisions 71878 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r71878 | tarek.ziade | 2009-04-25 14:38:08 +0200 (Sat, 25 Apr 2009) | 1 line Issue #4951: Fixed failure in test_httpservers ........
Diffstat (limited to 'Lib/distutils')
-rw-r--r--Lib/distutils/tests/test_util.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/Lib/distutils/tests/test_util.py b/Lib/distutils/tests/test_util.py
index 29be0cf..348933e 100644
--- a/Lib/distutils/tests/test_util.py
+++ b/Lib/distutils/tests/test_util.py
@@ -29,7 +29,7 @@ class utilTestCase(unittest.TestCase):
self.platform = sys.platform
self.version = sys.version
self.sep = os.sep
- self.environ = os.environ
+ self.environ = dict(os.environ)
self.join = os.path.join
self.isabs = os.path.isabs
self.splitdrive = os.path.splitdrive
@@ -51,7 +51,10 @@ class utilTestCase(unittest.TestCase):
sys.platform = self.platform
sys.version = self.version
os.sep = self.sep
- os.environ = self.environ
+ for k, v in self.environ.items():
+ os.environ[k] = v
+ for k in set(os.environ) - set(self.environ):
+ del os.environ[k]
os.path.join = self.join
os.path.isabs = self.isabs
os.path.splitdrive = self.splitdrive