This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Title: Instead of skipping, IPV6 test(s) fail on a non-IPV6 machine
Type: Stage: resolved
Components: Tests Versions: Python 3.6
Status: closed Resolution: duplicate
Dependencies: Superseder: Test suite fails when Ipv6 is unavailable
View: 37199
Assigned To: Nosy List: UnitedMarsupials, ZackerySpytz, asvetlov, xtreak
Priority: normal Keywords:

Created on 2020-04-20 17:48 by UnitedMarsupials, last changed 2022-04-11 14:59 by admin. This issue is now closed.

File name Uploaded Description Edit
config.log UnitedMarsupials, 2020-04-20 17:48 Log of configure-script, with IPv6 explicitly disabled
Messages (2)
msg366858 - (view) Author: M T (UnitedMarsupials) Date: 2020-04-20 17:48
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/", line 1149, in test_create_server_ipv6
  File "/spare/usr/ports/lang/python36/work/Python-3.6.10/Lib/asyncio/", line 488, in run_until_complete
    return future.result()
  File "/spare/usr/ports/lang/python36/work/Python-3.6.10/Lib/asyncio/", 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/", line 1141, in main
    lambda: None, '::1', 0, loop=self.loop)
  File "/spare/usr/ports/lang/python36/work/Python-3.6.10/Lib/asyncio/", 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/", 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/", line 990, in _create_server_getaddrinfo
    flags=flags, loop=self)
  File "/spare/usr/ports/lang/python36/work/Python-3.6.10/Lib/concurrent/futures/", line 56, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/spare/usr/ports/lang/python36/work/Python-3.6.10/Lib/", 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/", 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
msg366866 - (view) Author: Karthikeyan Singaravelan (xtreak) * (Python committer) Date: 2020-04-20 19:05
See also for related work.
Date User Action Args
2022-04-11 14:59:29adminsetgithub: 84519
2021-05-19 01:19:05gregory.p.smithsetstatus: open -> closed
superseder: Test suite fails when Ipv6 is unavailable
resolution: duplicate
stage: resolved
2020-04-20 19:05:24xtreaksetnosy: + ZackerySpytz, asvetlov, xtreak
messages: + msg366866
2020-04-20 17:48:49UnitedMarsupialscreate