Skip to content

Replace pytest-asyncio with anyio#655

Open
jacobtomlinson wants to merge 2 commits intodask:mainfrom
jacobtomlinson:pytest-anyio
Open

Replace pytest-asyncio with anyio#655
jacobtomlinson wants to merge 2 commits intodask:mainfrom
jacobtomlinson:pytest-anyio

Conversation

@jacobtomlinson
Copy link
Member

@jacobtomlinson jacobtomlinson commented Aug 6, 2024

In other Dask projects we've found that pytest-asyncio causes a bunch of headaches. The test tooling from anyio is much more reliable.

This PR replaces pytest-asyncio with anyio as a test dependency. It configures anyio to only use the asyncio backend for testing and replaces the pytest marks where needed.

@jacobtomlinson jacobtomlinson added enhancement New feature or request CI Continuous Integration tools labels Aug 6, 2024
@jacobtomlinson
Copy link
Member Author

Looks like we still need pytest-asyncio to be included in the environment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CI Continuous Integration tools enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant