[issue13104] urllib.request.thishost() returns a garbage value

STINNER Victor report at bugs.python.org
Thu Oct 6 02:52:17 CEST 2011


STINNER Victor <victor.stinner at haypocalc.com> added the comment:

There is a failure on FreeBSD 8.2 buildbot:

http://www.python.org/dev/buildbot/all/builders/AMD64%20FreeBSD%208.2%203.x/builds/1104/steps/test/logs/stdio

======================================================================
ERROR: test_thishost (test.test_urllib.Utility_Tests)
Test the urllib.request.thishost utility function returns a tuple
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/home/buildbot/buildarea/3.x.krah-freebsd/build/Lib/test/test_urllib.py", line 1063, in test_thishost
    self.assertIsInstance(urllib.request.thishost(), tuple)
  File "/usr/home/buildbot/buildarea/3.x.krah-freebsd/build/Lib/urllib/request.py", line 2128, in thishost
    _thishost = tuple(socket.gethostbyname_ex(socket.gethostname())[2])
socket.gaierror: [Errno 8] hostname nor servname provided, or not known

----------
nosy: +haypo

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


More information about the Python-bugs-list mailing list