summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBarry Warsaw <barry@python.org>2010-10-14 18:10:34 (GMT)
committerBarry Warsaw <barry@python.org>2010-10-14 18:10:34 (GMT)
commit270800c801c777e1fb39d158fd60a0999d87bf0d (patch)
tree6d06940487b8eee02babbfb2055711a83e4edb41
parent278266f6f23b67449bf49b8edd542333b3fb80b4 (diff)
downloadcpython-270800c801c777e1fb39d158fd60a0999d87bf0d.zip
cpython-270800c801c777e1fb39d158fd60a0999d87bf0d.tar.gz
cpython-270800c801c777e1fb39d158fd60a0999d87bf0d.tar.bz2
Fix issue 10094, by narrowing down the test for PROXY environment variables.
Ubuntu 10.10 introduced $UBUNTU_MENUPROXY into the default user environment, and that's what's tripping up the code.
-rw-r--r--Lib/test/test_urllib.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_urllib.py b/Lib/test/test_urllib.py
index 35c7f51..fc3db9f 100644
--- a/Lib/test/test_urllib.py
+++ b/Lib/test/test_urllib.py
@@ -119,7 +119,7 @@ class ProxyTests(unittest.TestCase):
self.env = support.EnvironmentVarGuard()
# Delete all proxy related env vars
for k in os.environ.keys():
- if 'proxy' in k.lower():
+ if k == 'NO_PROXY':
self.env.unset(k)
def tearDown(self):