Fix for Issue7026. For the Error - RuntimeError: dictionary changed size during iteration
This commit is contained in:
parent
8015725d4f
commit
7a2ee0b460
|
@ -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)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue