From: Barry Warsaw Date: Thu, 14 Oct 2010 18:23:53 +0000 (+0000) Subject: Fix issue 10094, by narrowing down the test for PROXY environment variables. X-Git-Tag: v3.1.3rc1~118 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e0f214a54912e428f378d1ef38b725a013b16990;p=python 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. --- diff --git a/Lib/test/test_urllib.py b/Lib/test/test_urllib.py index 4d389d72e4..13aa7b39d3 100644 --- a/Lib/test/test_urllib.py +++ b/Lib/test/test_urllib.py @@ -121,7 +121,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):