Avoid using items() in environ.update(). Fixes #1124513.

Will backport to 2.4.
This commit is contained in:
Martin v. Löwis 2005-02-17 21:23:20 +00:00
parent 3040b19976
commit 5510f65f5a
2 changed files with 19 additions and 9 deletions

View file

@ -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()