mirror of
https://github.com/python/cpython.git
synced 2025-08-15 14:20:55 +00:00
Issue #4951: Fixed failure in test_httpservers
This commit is contained in:
parent
a145317be9
commit
d567c38ef2
2 changed files with 7 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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'.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue