mirror of https://github.com/python/cpython
#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.
This commit is contained in:
parent
ef87f8cb57
commit
fdbe918eb0
|
@ -1209,7 +1209,8 @@ class HandlerTests(unittest.TestCase):
|
||||||
self.assertTrue(_proxy_bypass_macosx_sysconf(host, bypass),
|
self.assertTrue(_proxy_bypass_macosx_sysconf(host, bypass),
|
||||||
'expected bypass of %s to be True' % host)
|
'expected bypass of %s to be True' % host)
|
||||||
# Check hosts that should not trigger the proxy bypass
|
# 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),
|
self.assertFalse(_proxy_bypass_macosx_sysconf(host, bypass),
|
||||||
'expected bypass of %s to be False' % host)
|
'expected bypass of %s to be False' % host)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue