Fixes a user reported test break (modifying a dict while iterating).

This commit is contained in:
vladlosev
2011-08-16 00:47:22 +00:00
parent c2922d4ed2
commit cf3f92ef93
4 changed files with 20 additions and 13 deletions

View File

@@ -241,7 +241,7 @@ class Subprocess:
# Changes made by os.environ.clear are not inheritable by child
# processes until Python 2.6. To produce inheritable changes we have
# to delete environment items with the del statement.
for key in dest:
for key in dest.keys():
del dest[key]
dest.update(src)