pytest icon indicating copy to clipboard operation
pytest copied to clipboard

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

Open RonnyPfannschmidt opened this issue 3 years ago • 2 comments

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

RonnyPfannschmidt avatar May 15 '22 20:05 RonnyPfannschmidt

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?

Zac-HD avatar Jul 06 '24 22:07 Zac-HD

We absolutely should upstream a part of it

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

RonnyPfannschmidt avatar Jul 07 '24 04:07 RonnyPfannschmidt