summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2010-10-14 18:31:39 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2010-10-14 18:31:39 (GMT)
commitb3a88b5c421fe867e1f5ecdd179b190614729933 (patch)
tree11b71886116a5b9c63184308b17ab3792906c6f5 /Lib
parent270800c801c777e1fb39d158fd60a0999d87bf0d (diff)
downloadcpython-b3a88b5c421fe867e1f5ecdd179b190614729933.zip
cpython-b3a88b5c421fe867e1f5ecdd179b190614729933.tar.gz
cpython-b3a88b5c421fe867e1f5ecdd179b190614729933.tar.bz2
Really fix bug
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_urllib.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_urllib.py b/Lib/test/test_urllib.py
index fc3db9f..f0766b2 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):