Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 00679a7

Browse files
committed
Issue #16702: Skip proxies for localhost in urllib2_localnet tests
2 parents 3416769 + 303eb47 commit 00679a7

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

Lib/test/test_urllib2_localnet.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -352,6 +352,8 @@ class TestUrlopen(unittest.TestCase):
352352

353353
def setUp(self):
354354
super(TestUrlopen, self).setUp()
355+
# Ignore proxies for localhost tests.
356+
os.environ['NO_PROXY'] = '*'
355357
self.server = None
356358

357359
def tearDown(self):

Misc/NEWS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,9 @@ Core and Builtins
114114
Library
115115
-------
116116

117+
- Issue #16702: test_urllib2_localnet tests now correctly ignores proxies for
118+
localhost tests.
119+
117120
- Issue #16511: Use default IDLE width and height if config param is not valid.
118121
Patch Serhiy Storchaka.
119122

0 commit comments

Comments
 (0)