mirror of
https://github.com/python/cpython.git
synced 2025-11-01 18:51:43 +00:00
Avoid using items() in environ.update(). Fixes #1124513.
Will backport to 2.4.
This commit is contained in:
parent
3040b19976
commit
5510f65f5a
2 changed files with 19 additions and 9 deletions
|
|
@ -227,7 +227,7 @@ class EnvironTests(mapping_tests.BasicTestMappingProtocol):
|
|||
os.environ.update(self.__save)
|
||||
|
||||
# Bug 1110478
|
||||
def test_update(self):
|
||||
def test_update2(self):
|
||||
if os.path.exists("/bin/sh"):
|
||||
os.environ.update(HELLO="World")
|
||||
value = os.popen("/bin/sh -c 'echo $HELLO'").read().strip()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue