[issue5625] test_urllib2 fails - urlopen error file not on local host
Zsolt Cserna
report at bugs.python.org
Wed Dec 15 10:09:18 CET 2010
Zsolt Cserna <zsolt.cserna at morganstanley.com> added the comment:
Could you please add this change to test_urllib2.py as well?
It has the following line:
localaddr = socket.gethostbyname(socket.gethostname())
But urllib2.py has the change related to this bug.
That makes test_urllib2 failing when gethostbyname reports different IP than gethostbyname_ex:
(Pdb) socket.gethostbyname_ex(socket.gethostname())[2]
['172.31.92.26']
(Pdb) socket.gethostbyname(socket.gethostname())
'172.31.72.206'
----------
nosy: +csernazs
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue5625>
_______________________________________
More information about the Python-bugs-list
mailing list