From 270800c801c777e1fb39d158fd60a0999d87bf0d Mon Sep 17 00:00:00 2001 From: Barry Warsaw Date: Thu, 14 Oct 2010 18:10:34 +0000 Subject: 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. --- Lib/test/test_urllib.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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): -- cgit v0.12