From: Antoine Pitrou Date: Thu, 14 Oct 2010 18:31:39 +0000 (+0000) Subject: Really fix bug X-Git-Tag: v3.2a4~586 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b3a88b5c421fe867e1f5ecdd179b190614729933;p=thirdparty%2FPython%2Fcpython.git Really fix bug --- diff --git a/Lib/test/test_urllib.py b/Lib/test/test_urllib.py index fc3db9fa6133..f0766b2e316e 100644 --- a/Lib/test/test_urllib.py +++ b/Lib/test/test_urllib.py @@ -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):