[New-bugs-announce] [issue25138] test_socket: socket.EAI_NODATA doesn't exist on FreeBSD

STINNER Victor report at bugs.python.org
Wed Sep 16 08:52:45 CEST 2015


New submission from STINNER Victor:

test_socket.test_idna() uses socket.EAI_NODATA constant which doesn't exists on FreeBSD.

http://buildbot.python.org/all/builders/AMD64%20FreeBSD%2010.0%203.x/builds/3697/steps/test/logs/stdio

======================================================================
ERROR: test_idna (test.test_socket.GeneralModuleTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/home/buildbot/python/3.x.koobs-freebsd10/build/Lib/test/test_socket.py", line 1294, in test_idna
    socket.gethostbyname('python.org')
socket.gaierror: [Errno 8] hostname nor servname provided, or not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/home/buildbot/python/3.x.koobs-freebsd10/build/Lib/test/test_socket.py", line 1296, in test_idna
    if e.errno == socket.EAI_NODATA:
AttributeError: module 'socket' has no attribute 'EAI_NODATA'

----------
components: Tests
messages: 250817
nosy: haypo
priority: normal
severity: normal
status: open
title: test_socket: socket.EAI_NODATA doesn't exist on FreeBSD
versions: Python 3.5, Python 3.6

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


More information about the New-bugs-announce mailing list