From 303eb478f27720f0e5b6b4147b05f9c15f7fd8f6 Mon Sep 17 00:00:00 2001 From: Senthil Kumaran Date: Wed, 26 Dec 2012 01:45:58 -0800 Subject: [PATCH] Issue #16702: Skip proxies for localhost in urllib2_localnet tests --- Lib/test/test_urllib2_localnet.py | 2 ++ Misc/NEWS | 3 +++ 2 files changed, 5 insertions(+) diff --git a/Lib/test/test_urllib2_localnet.py b/Lib/test/test_urllib2_localnet.py index 9e1ce5bb9ed..f07471dd0ef 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 a93024a8ecf..880e23aa92e 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -179,6 +179,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.