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: test_asyncio hangs on an IPv6-only host
Type: Stage: needs patch
Components: Tests Versions: Python 3.9, Python 3.8, Python 3.7
Status: open Resolution:
Dependencies: Superseder:
Assigned To: gregory.p.smith Nosy List: gregory.p.smith, vstinner
Priority: normal Keywords:

Created on 2019-08-20 18:32 by gregory.p.smith, last changed 2022-04-11 14:59 by admin.

Messages (2)
msg350033 - (view) Author: Gregory P. Smith (gregory.p.smith) * (Python committer) Date: 2019-08-20 18:32
test_drain_raises (test.test_asyncio.test_streams.StreamTests) ... Exception in thread Thread-20:
Traceback (most recent call last):
  File "/home/greg/oss/cpython/Lib/", line 938, in _bootstrap_inner
  File "/home/greg/oss/cpython/Lib/", line 876, in run
    self._target(*self._args, **self._kwargs)
  File "/home/greg/oss/cpython/Lib/test/test_asyncio/", line 951, in server
    with socket.create_server(('localhost', 0)) as sock:
  File "/home/greg/oss/cpython/Lib/", line 804, in create_server
    raise error(err.errno, msg) from None
OSError: [Errno 99] Cannot assign requested address (while attempting to bind on address ('localhost', 0))

I'm preparing an IPv6-only buildbot.  (there is no IPv4 localhost)
msg355049 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2019-10-21 10:45
I guess that either test_drain_raises should be skipped or modified to listen to ::1 (IPv6 loopback).
Date User Action Args
2022-04-11 14:59:19adminsetgithub: 82078
2019-10-21 10:45:08vstinnersetnosy: + vstinner
messages: + msg355049
2019-08-20 18:32:15gregory.p.smithcreate