]> granicus.if.org Git - python/commitdiff
Issue #16702: Skip proxies for localhost in urllib2_localnet tests
authorSenthil Kumaran <senthil@uthcode.com>
Wed, 26 Dec 2012 09:45:58 +0000 (01:45 -0800)
committerSenthil Kumaran <senthil@uthcode.com>
Wed, 26 Dec 2012 09:45:58 +0000 (01:45 -0800)
Lib/test/test_urllib2_localnet.py
Misc/NEWS

index 9e1ce5bb9eda7316032232dd1320528251ddca95..f07471dd0ef514dfca5acfd8326c0a85ed1813b3 100644 (file)
@@ -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):
index a93024a8ecfee8d2fb34469bde944098ffef24be..880e23aa92e1da73179f0e34366f9d0e85292c3b 100644 (file)
--- 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.