summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTarek Ziadé <ziade.tarek@gmail.com>2009-04-25 12:38:08 (GMT)
committerTarek Ziadé <ziade.tarek@gmail.com>2009-04-25 12:38:08 (GMT)
commitd567c38ef2b6e5850a7d5941eceb639c25b24b39 (patch)
treedf1ea62f9aff76cff051f5228f1f9eda3f2f17be
parenta145317be9989bcb17f9631af7e2fc3d0e628669 (diff)
downloadcpython-d567c38ef2b6e5850a7d5941eceb639c25b24b39.zip
cpython-d567c38ef2b6e5850a7d5941eceb639c25b24b39.tar.gz
cpython-d567c38ef2b6e5850a7d5941eceb639c25b24b39.tar.bz2
Issue #4951: Fixed failure in test_httpservers
-rw-r--r--Lib/distutils/tests/test_util.py7
-rw-r--r--Misc/NEWS2
2 files changed, 7 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
diff --git a/Misc/NEWS b/Misc/NEWS
index 28ddebb..125cf6e 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -246,6 +246,8 @@ Core and Builtins
Library
-------
+- Issue #4951: Fixed failure in test_httpservers.
+
- Issue #3102: All global symbols that the _ctypes extension defines
are now prefixed with 'Py' or '_ctypes'.