[Python-checkins] cpython (merge 3.3 -> default): Issue #16702: Skip proxies for localhost in urllib2_localnet tests
senthil.kumaran
python-checkins at python.org
Wed Dec 26 10:47:32 CET 2012
http://hg.python.org/cpython/rev/43b19d9f9af4
changeset: 81061:43b19d9f9af4
parent: 81057:60f7197f991f
parent: 81060:8a524faeb7ae
user: Senthil Kumaran <senthil at uthcode.com>
date: Wed Dec 26 01:47:09 2012 -0800
summary:
Issue #16702: Skip proxies for localhost in urllib2_localnet tests
files:
Lib/test/test_urllib2_localnet.py | 2 ++
Misc/NEWS | 3 +++
2 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/Lib/test/test_urllib2_localnet.py b/Lib/test/test_urllib2_localnet.py
--- a/Lib/test/test_urllib2_localnet.py
+++ b/Lib/test/test_urllib2_localnet.py
@@ -352,6 +352,8 @@
def setUp(self):
super(TestUrlopen, self).setUp()
+ # Ignore proxies for localhost tests.
+ os.environ['NO_PROXY'] = '*'
self.server = None
def tearDown(self):
diff --git a/Misc/NEWS b/Misc/NEWS
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -186,6 +186,9 @@
Library
-------
+- Issue #16702: test_urllib2_localnet tests now correctly ignores proxies for
+ localhost tests.
+
- Issue #16511: Use default IDLE width and height if config param is not valid.
Patch Serhiy Storchaka.
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list