summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_urllib2_localnet.py
diff options
context:
space:
mode:
authorSenthil Kumaran <senthil@uthcode.com>2012-12-26 09:46:39 (GMT)
committerSenthil Kumaran <senthil@uthcode.com>2012-12-26 09:46:39 (GMT)
commit00679a7ee0f6fa630c2f709f1d0a761e80181eb7 (patch)
treeb13ec0689481869b9ea591f140d2615eef59b9c9 /Lib/test/test_urllib2_localnet.py
parent3416769b60f6d167b7309b74b2fc9133a4b7d34c (diff)
parent303eb478f27720f0e5b6b4147b05f9c15f7fd8f6 (diff)
downloadcpython-00679a7ee0f6fa630c2f709f1d0a761e80181eb7.zip
cpython-00679a7ee0f6fa630c2f709f1d0a761e80181eb7.tar.gz
cpython-00679a7ee0f6fa630c2f709f1d0a761e80181eb7.tar.bz2
Issue #16702: Skip proxies for localhost in urllib2_localnet tests
Diffstat (limited to 'Lib/test/test_urllib2_localnet.py')
-rw-r--r--Lib/test/test_urllib2_localnet.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_urllib2_localnet.py b/Lib/test/test_urllib2_localnet.py
index 6ef4200..1eba14b 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):