]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Really fix bug
authorAntoine Pitrou <solipsis@pitrou.net>
Thu, 14 Oct 2010 18:31:39 +0000 (18:31 +0000)
committerAntoine Pitrou <solipsis@pitrou.net>
Thu, 14 Oct 2010 18:31:39 +0000 (18:31 +0000)
Lib/test/test_urllib.py

index fc3db9fa61334078446e08a52a8ec0eb517b8a65..f0766b2e316ed7dae7d2a534db77fa9c89c8c3dc 100644 (file)
@@ -118,8 +118,8 @@ class ProxyTests(unittest.TestCase):
         # Records changes to env vars
         self.env = support.EnvironmentVarGuard()
         # Delete all proxy related env vars
-        for k in os.environ.keys():
-            if k == 'NO_PROXY':
+        for k in list(os.environ):
+            if 'proxy' not in k.lower():
                 self.env.unset(k)
 
     def tearDown(self):