mirror of
https://github.com/python/cpython.git
synced 2025-12-10 02:50:09 +00:00
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
2731494720
commit
e0f214a549
1 changed files with 1 additions and 1 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue