Skip to content

Fix asyncio.wait DeprecationWarning on python 3.9 #161

Closed
@leszekhanusz

Description

@leszekhanusz

Executing the tests with tox on python 3.9 will generate the following DeprecationWarning:

tests/test_async_client_validation.py: 6 tests with warnings
tests/test_phoenix_channel_exceptions.py: 1 test with warning
tests/test_websocket_exceptions.py: 14 tests with warnings
tests/test_websocket_query.py: 2 tests with warnings
tests/test_websocket_subscription.py: 2 tests with warnings
  /home/leszek/git_repos/gql/.tox/py39-dev/lib/python3.9/site-packages/websockets/server.py:712: DeprecationWarning: The explicit passing of coroutine objects to asyncio.wait() is deprecated since Python 3.8, and scheduled for removal in Python 3.11.
    await asyncio.wait(

See Python issue 34790

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: maintenanceAn issue or pull request describing a change that isn't a bug, feature or documentation change

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions