summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSenthil Kumaran <senthil@uthcode.com>2012-12-26 09:47:09 (GMT)
committerSenthil Kumaran <senthil@uthcode.com>2012-12-26 09:47:09 (GMT)
commit2bf61abe02d578a9812cb13d4d71e14f481c4cb5 (patch)
treebab1c61f0a9e2cb9a84bc317f56e39e745c3ff12
parenta689e524e7465b5facc07f493adfa7eda6b918d4 (diff)
parent00679a7ee0f6fa630c2f709f1d0a761e80181eb7 (diff)
downloadcpython-2bf61abe02d578a9812cb13d4d71e14f481c4cb5.zip
cpython-2bf61abe02d578a9812cb13d4d71e14f481c4cb5.tar.gz
cpython-2bf61abe02d578a9812cb13d4d71e14f481c4cb5.tar.bz2
Issue #16702: Skip proxies for localhost in urllib2_localnet tests
-rw-r--r--Lib/test/test_urllib2_localnet.py2
-rw-r--r--Misc/NEWS3
2 files changed, 5 insertions, 0 deletions
diff --git a/Lib/test/test_urllib2_localnet.py b/Lib/test/test_urllib2_localnet.py
index fb2413d..b22954c 100644
--- a/Lib/test/test_urllib2_localnet.py
+++ b/Lib/test/test_urllib2_localnet.py
@@ -352,6 +352,8 @@ class TestUrlopen(unittest.TestCase):
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
index b85fd43..f626c41 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -186,6 +186,9 @@ Core and Builtins
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.