]> granicus.if.org Git - python/commitdiff
Merged revisions 85489-85490 via svnmerge from
authorAntoine Pitrou <solipsis@pitrou.net>
Thu, 14 Oct 2010 18:40:02 +0000 (18:40 +0000)
committerAntoine Pitrou <solipsis@pitrou.net>
Thu, 14 Oct 2010 18:40:02 +0000 (18:40 +0000)
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r85489 | antoine.pitrou | 2010-10-14 20:31:39 +0200 (jeu., 14 oct. 2010) | 3 lines

  Really fix bug
........
  r85490 | antoine.pitrou | 2010-10-14 20:32:54 +0200 (jeu., 14 oct. 2010) | 3 lines

  Oops
........

Lib/test/test_urllib.py

index 13aa7b39d31f83ffc2bb9c8800cddd5f919b287c..2a9590a8c3eac529251b604635cc11a931659952 100644 (file)
@@ -120,8 +120,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' in k.lower():
                 self.env.unset(k)
 
     def tearDown(self):