Skip to content

Bogus test failure in test_open_unix_socket due to use of an insufficiently unique name #447

Closed

Description

@njsmith

Seen here: https://ci.cryptography.io/blue/rest/organizations/jenkins/pipelines/python-trio/pipelines/trio/branches/PR-446/runs/1/nodes/5/log/?start=0

____________________________ test_open_unix_socket _____________________________

    async def test_open_unix_socket():
>       name, serv_sock = await get_server_socket()

../.venv/lib/python3.5/site-packages/trio/tests/test_highlevel_open_unix_stream.py:50: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

    async def get_server_socket():
        name = Path() / tempfile.gettempdir() / "test.sock"
        try:
            await name.unlink()
        except OSError:
            pass
    
        serv_sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM)
>       serv_sock.bind(fspath(name))  # bpo-32562
E       OSError: [Errno 48] Address already in use

../.venv/lib/python3.5/site-packages/trio/tests/test_highlevel_open_unix_stream.py:24: OSError

Activity

  1. added a commit that references this issue on Feb 21, 2018
    72e9fc9
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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions