mirror of
https://github.com/python/cpython.git
synced 2025-10-03 05:35:59 +00:00
Fixing - Issue7026 - RuntimeError: dictionary changed size during iteration. Patch by flox.
This commit is contained in:
parent
e0f4be7e5d
commit
d3ffdb44c8
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue