Really fix bug

This commit is contained in:
Antoine Pitrou 2010-10-14 18:31:39 +00:00
parent 270800c801
commit b3a88b5c42

View 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):