classification
Title: Instead of skipping, IPV6 test(s) fail on a non-IPV6 machine
Type: Stage: resolved
Components: Tests Versions: Python 3.6
process
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 2021-05-19 01:19 by gregory.p.smith. This issue is now closed.

Files
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/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
msg366866 - (view) Author: Karthikeyan Singaravelan (xtreak) * (Python committer) Date: 2020-04-20 19:05
See also https://bugs.python.org/issue37199 for related work.
History
Date User Action Args
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