pytest-dev / pytest

The pytest framework makes it easy to write small tests, yet scales to support complex functional testing
https://pytest.org
MIT License
12.07k stars 2.67k forks source link

hook/mechanism to await awaitable results of fixtures/test results (asyncio/anyio/trio) #9962

Open RonnyPfannschmidt opened 2 years ago

RonnyPfannschmidt commented 2 years ago

currently pytest plugins have to replicate a number of mechanisms to handle async fixtures

207 was originally intended to help with that, but was more broad than necessary

with #7337 being soon integrated, the interface should be narrowed and coordinated with the asyncio/trio/curio plugins

Zac-HD commented 4 months ago

As a maintainer of pytest, trio, anyio, and pytest-trio (anyio has the pytest plugin built-in), I think the status quo is working pretty well. Anything else we need to do before closing this?

RonnyPfannschmidt commented 3 months ago

We absolutely should upstream a part of it

I want to be in a position where nextitemcan be removed from the runtest protocol