Commit 53d92cb1 authored by Tarek Ziadé's avatar Tarek Ziadé

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
........
parent a7d46784
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment