]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix issue 10094, by narrowing down the test for PROXY environment variables.
authorBarry Warsaw <barry@python.org>
Thu, 14 Oct 2010 18:10:34 +0000 (18:10 +0000)
committerBarry Warsaw <barry@python.org>
Thu, 14 Oct 2010 18:10:34 +0000 (18:10 +0000)
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

index 35c7f5103a3d6e18cf192e2b313a705b73ec6dc7..fc3db9fa61334078446e08a52a8ec0eb517b8a65 100644 (file)
@@ -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):