summaryrefslogtreecommitdiff
path: root/Lib/test/test_urllib2.py
diff options
context:
space:
mode:
authorR David Murray <rdmurray@bitdance.com>2014-03-15 12:00:14 -0400
committerR David Murray <rdmurray@bitdance.com>2014-03-15 12:00:14 -0400
commit9d50651db5bc240cdcf51f32612179f7b6d195de (patch)
tree70a8305e3f34a3a39a0c1c0f2cfd56e4000ce9f2 /Lib/test/test_urllib2.py
parentd74df705439388e0fccf65b098e08af46c0782fb (diff)
downloadcpython-9d50651db5bc240cdcf51f32612179f7b6d195de.tar.gz
#20933: At least one place maps 'test' to 'localhost'...fix test.
Discovery and patch by Wenzhu Man. University of Waterloo apparently maps the local name 'test' to localhost, which is in the bypass list, causing the test to fail. So change 'test' to a name unlikely to get mapped to localhost.
Diffstat (limited to 'Lib/test/test_urllib2.py')
-rw-r--r--Lib/test/test_urllib2.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/test_urllib2.py b/Lib/test/test_urllib2.py
index 3559b1b789..d0691398b5 100644
--- a/Lib/test/test_urllib2.py
+++ b/Lib/test/test_urllib2.py
@@ -1209,7 +1209,8 @@ class HandlerTests(unittest.TestCase):
self.assertTrue(_proxy_bypass_macosx_sysconf(host, bypass),
'expected bypass of %s to be True' % host)
# Check hosts that should not trigger the proxy bypass
- for host in ('abc.foo.bar', 'bar.com', '127.0.0.2', '10.11.0.1', 'test'):
+ for host in ('abc.foo.bar', 'bar.com', '127.0.0.2', '10.11.0.1',
+ 'notinbypass'):
self.assertFalse(_proxy_bypass_macosx_sysconf(host, bypass),
'expected bypass of %s to be False' % host)