Commit d3ffdb44 authored by Senthil Kumaran's avatar Senthil Kumaran

Fixing - Issue7026 - RuntimeError: dictionary changed size during iteration. Patch by flox.

parent e0f4be7e
...@@ -101,7 +101,7 @@ class ProxyTests(unittest.TestCase): ...@@ -101,7 +101,7 @@ class ProxyTests(unittest.TestCase):
# Records changes to env vars # Records changes to env vars
self.env = test_support.EnvironmentVarGuard() self.env = test_support.EnvironmentVarGuard()
# Delete all proxy related env vars # Delete all proxy related env vars
for k, v in os.environ.iteritems(): for k in os.environ.keys():
if 'proxy' in k.lower(): if 'proxy' in k.lower():
self.env.unset(k) self.env.unset(k)
......
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