mirror of https://github.com/python/cpython
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.
This commit is contained in:
parent
278266f6f2
commit
270800c801
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue