From 7a2ee0b460afe426fa84bdcc0e160a0a4c343a57 Mon Sep 17 00:00:00 2001 From: Senthil Kumaran Date: Fri, 8 Jan 2010 19:20:25 +0000 Subject: [PATCH] Fix for Issue7026. For the Error - RuntimeError: dictionary changed size during iteration --- Lib/test/test_urllib.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/test/test_urllib.py b/Lib/test/test_urllib.py index c74b101713c..8d41bf089dc 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)