Skip to content

test_asyncio hangs on an IPv6-only host #82078

Open

Description

@gpshead
BPO 37897
Nosy @gpshead, @vstinner

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = 'https://github.com/gpshead'
closed_at = None
created_at = <Date 2019-08-20.18:32:15.180>
labels = ['3.8', '3.7', 'tests', '3.9']
title = 'test_asyncio hangs on an IPv6-only host'
updated_at = <Date 2019-10-21.10:45:08.784>
user = 'https://github.com/gpshead'

bugs.python.org fields:

activity = <Date 2019-10-21.10:45:08.784>
actor = 'vstinner'
assignee = 'gregory.p.smith'
closed = False
closed_date = None
closer = None
components = ['Tests']
creation = <Date 2019-08-20.18:32:15.180>
creator = 'gregory.p.smith'
dependencies = []
files = []
hgrepos = []
issue_num = 37897
keywords = []
message_count = 2.0
messages = ['350033', '355049']
nosy_count = 2.0
nosy_names = ['gregory.p.smith', 'vstinner']
pr_nums = []
priority = 'normal'
resolution = None
stage = 'needs patch'
status = 'open'
superseder = None
type = None
url = 'https://bugs.python.org/issue37897'
versions = ['Python 3.7', 'Python 3.8', 'Python 3.9']

Activity

  1. gpshead commented on Aug 20, 2019

    @gpshead
    MemberAuthor
    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/threading.py", line 938, in _bootstrap_inner
        self.run()
      File "/home/greg/oss/cpython/Lib/threading.py", line 876, in run
        self._target(*self._args, **self._kwargs)
      File "/home/greg/oss/cpython/Lib/test/test_asyncio/test_streams.py", line 951, in server
        with socket.create_server(('localhost', 0)) as sock:
      File "/home/greg/oss/cpython/Lib/socket.py", 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)

  2. self-assigned this
    on Aug 20, 2019
  3. vstinner commented on Oct 21, 2019

    @vstinner
    Member

    I guess that either test_drain_raises should be skipped or modified to listen to ::1 (IPv6 loopback).

  4. transferred this issue fromon Apr 10, 2022
  5. removed their assignment
    on Jul 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    • Status
      Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions