[Python-checkins] cpython (merge 3.2 -> 3.3): Issue #16702: Skip proxies for localhost in urllib2_localnet tests

senthil.kumaran python-checkins at python.org
Wed Dec 26 10:47:30 CET 2012


http://hg.python.org/cpython/rev/8a524faeb7ae
changeset:   81060:8a524faeb7ae
branch:      3.3
parent:      81055:517f3432d1b5
parent:      81059:0eccfb237364
user:        Senthil Kumaran <senthil at uthcode.com>
date:        Wed Dec 26 01:46:39 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
@@ -114,6 +114,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