From: Senthil Kumaran Date: Fri, 8 Jan 2010 18:25:42 +0000 (+0000) Subject: Fixing - Issue7026 - RuntimeError: dictionary changed size during iteration. Patch... X-Git-Tag: v2.6.5rc1~190 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d3ffdb44c819944a54264b9c3d4017928bceee04;p=thirdparty%2FPython%2Fcpython.git Fixing - Issue7026 - RuntimeError: dictionary changed size during iteration. Patch by flox. --- diff --git a/Lib/test/test_urllib.py b/Lib/test/test_urllib.py index 5f9744c4512f..fd9c36150ebe 100644 --- a/Lib/test/test_urllib.py +++ b/Lib/test/test_urllib.py @@ -101,7 +101,7 @@ class ProxyTests(unittest.TestCase): # Records changes to env vars self.env = test_support.EnvironmentVarGuard() # Delete all proxy related env vars - for k, v in os.environ.iteritems(): + for k in os.environ.keys(): if 'proxy' in k.lower(): self.env.unset(k)