[Python-checkins] r85487 - python/branches/py3k/Lib/test/test_urllib.py
barry.warsaw
python-checkins at python.org
Thu Oct 14 20:10:35 CEST 2010
Author: barry.warsaw
Date: Thu Oct 14 20:10:34 2010
New Revision: 85487
Log:
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.
Modified:
python/branches/py3k/Lib/test/test_urllib.py
Modified: python/branches/py3k/Lib/test/test_urllib.py
==============================================================================
--- python/branches/py3k/Lib/test/test_urllib.py (original)
+++ python/branches/py3k/Lib/test/test_urllib.py Thu Oct 14 20:10:34 2010
@@ -119,7 +119,7 @@
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):
More information about the Python-checkins
mailing list