[issue8455] buildbot: test_urllib2_localnet failures (Connection refused) on Tiger buildbot

Alexander Belopolsky report at bugs.python.org
Tue Jun 22 02:55:14 CEST 2010


Alexander Belopolsky <belopolsky at users.sourceforge.net> added the comment:

In fact, urllib.proxy_bypass() returns True for any simple host name (i.e. any string without '.' in it):

>>> proxy_bypass('xyz')
True
>>> proxy_bypass('')
True
>>> proxy_bypass('whatever')
True

I think the fix I am proposing makes sense regardless of platform because proxy_url is set up numerically:

proxy_url = "http://127.0.0.1:%d" % self.server.port

Maybe the above should be changed to

proxy_url = "%s:%d" % (self.URL, self.server.port)

once URL is changed to numerical form.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue8455>
_______________________________________


More information about the Python-bugs-list mailing list