Author UnitedMarsupials
Recipients UnitedMarsupials
Date 2020-04-20.17:48:48
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1587404929.24.0.675615215393.issue40339@roundup.psfhosted.org>
In-reply-to
Content
I have no use for IPv6 and, when recompiling my OS, disable the feature completely. Python compiles nicely despite of this, but the IPv6-related tests fail instead of being skipped:

ERROR: test_create_server_ipv6 (test.test_asyncio.test_base_events.BaseEventLoopWithSelectorTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/spare/usr/ports/lang/python36/work/Python-3.6.10/Lib/test/test_asyncio/test_base_events.py", line 1149, in test_create_server_ipv6
    self.loop.run_until_complete(main())
  File "/spare/usr/ports/lang/python36/work/Python-3.6.10/Lib/asyncio/base_events.py", line 488, in run_until_complete
    return future.result()
  File "/spare/usr/ports/lang/python36/work/Python-3.6.10/Lib/asyncio/coroutines.py", line 129, in throw
    return self.gen.throw(type, value, traceback)
  File "/spare/usr/ports/lang/python36/work/Python-3.6.10/Lib/test/test_asyncio/test_base_events.py", line 1141, in main
    lambda: None, '::1', 0, loop=self.loop)
  File "/spare/usr/ports/lang/python36/work/Python-3.6.10/Lib/asyncio/streams.py", line 119, in start_server
    return (yield from loop.create_server(factory, host, port, **kwds))
  File "/spare/usr/ports/lang/python36/work/Python-3.6.10/Lib/asyncio/base_events.py", line 1041, in create_server
    infos = yield from tasks.gather(*fs, loop=self)
  File "/spare/usr/ports/lang/python36/work/Python-3.6.10/Lib/asyncio/base_events.py", line 990, in _create_server_getaddrinfo
    flags=flags, loop=self)
  File "/spare/usr/ports/lang/python36/work/Python-3.6.10/Lib/concurrent/futures/thread.py", line 56, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/spare/usr/ports/lang/python36/work/Python-3.6.10/Lib/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno 8] hostname nor servname provided, or not known

======================================================================
FAIL: test_ipaddr_info (test.test_asyncio.test_base_events.BaseEventTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/spare/usr/ports/lang/python36/work/Python-3.6.10/Lib/test/test_asyncio/test_base_events.py", line 104, in test_ipaddr_info
    base_events._ipaddr_info('::3', 1, INET6, STREAM, TCP))
AssertionError: (<AddressFamily.AF_INET6: 28>, <SocketKin[38 chars], 0)) != None

----------------------------------------------------------------------

Ran 1549 tests in 36.401s

FAILED (failures=1, errors=3, skipped=7)
test test_asyncio failed
History
Date User Action Args
2020-04-20 17:48:49UnitedMarsupialssetrecipients: + UnitedMarsupials
2020-04-20 17:48:49UnitedMarsupialssetmessageid: <1587404929.24.0.675615215393.issue40339@roundup.psfhosted.org>
2020-04-20 17:48:49UnitedMarsupialslinkissue40339 messages
2020-04-20 17:48:49UnitedMarsupialscreate