[New-bugs-announce] [issue20933] bad test case in test_osx_proxy_bypass (test.test_urllib2.HandlerTests)
Wenzhu Man
report at bugs.python.org
Sat Mar 15 05:08:02 CET 2014
New submission from Wenzhu Man:
in test_urllib2.py file:
test_osx_proxy_bypass (test.test_urllib2.HandlerTests)
# 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'):
self.assertFalse(_proxy_bypass_macosx_sysconf(host, bypass),
'expected bypass of %s to be False' % host)
for host 'test' under some wifi conditions(University of Waterloo wifi)the socket.gethostbyname('test') returns localhost which is in the exceptions.
the assertion will fail.
this testcase should be modified or we add some condition before the assertion
----------
components: Tests
messages: 213633
nosy: Wenzhu.Man
priority: normal
severity: normal
status: open
title: bad test case in test_osx_proxy_bypass (test.test_urllib2.HandlerTests)
versions: Python 3.4
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue20933>
_______________________________________
More information about the New-bugs-announce
mailing list