Commit b3a88b5c authored by Antoine Pitrou's avatar Antoine Pitrou

Really fix bug

parent 270800c8
...@@ -118,8 +118,8 @@ class ProxyTests(unittest.TestCase): ...@@ -118,8 +118,8 @@ class ProxyTests(unittest.TestCase):
# Records changes to env vars # Records changes to env vars
self.env = support.EnvironmentVarGuard() self.env = support.EnvironmentVarGuard()
# Delete all proxy related env vars # Delete all proxy related env vars
for k in os.environ.keys(): for k in list(os.environ):
if k == 'NO_PROXY': if 'proxy' not in k.lower():
self.env.unset(k) self.env.unset(k)
def tearDown(self): def tearDown(self):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment