diff options
| author | Barry Warsaw <barry@python.org> | 2010-10-14 18:10:34 +0000 |
|---|---|---|
| committer | Barry Warsaw <barry@python.org> | 2010-10-14 18:10:34 +0000 |
| commit | bd5f4c83b03fa49bfe8debae5dfeeae1c237071f (patch) | |
| tree | 51e0ccd32fb35a8bbba950089a81656455d3c42a | |
| parent | b150de0da5e540310383a309fb82133db179c424 (diff) | |
| download | cpython-bd5f4c83b03fa49bfe8debae5dfeeae1c237071f.tar.gz | |
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.
| -rw-r--r-- | Lib/test/test_urllib.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_urllib.py b/Lib/test/test_urllib.py index 35c7f5103a..fc3db9fa61 100644 --- a/Lib/test/test_urllib.py +++ b/Lib/test/test_urllib.py @@ -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): |
