projects
/
python
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2731494
)
Fix issue 10094, by narrowing down the test for PROXY environment variables.
author
Barry Warsaw
<barry@python.org>
Thu, 14 Oct 2010 18:23:53 +0000
(18:23 +0000)
committer
Barry Warsaw
<barry@python.org>
Thu, 14 Oct 2010 18:23:53 +0000
(18:23 +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
patch
|
blob
|
history
diff --git
a/Lib/test/test_urllib.py
b/Lib/test/test_urllib.py
index 4d389d72e4ebf8bb8a7b07b2a1463657f10fe665..13aa7b39d31f83ffc2bb9c8800cddd5f919b287c 100644
(file)
--- a/
Lib/test/test_urllib.py
+++ b/
Lib/test/test_urllib.py
@@
-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):