pytest-asyncio-cooperative icon indicating copy to clipboard operation
pytest-asyncio-cooperative copied to clipboard

Tear down filled fixtures on fixture errors

Open gerlero opened this issue 11 months ago • 2 comments

Fix #44 by explicitly tearing down already filled fixtures when a fixture function raises an exception

gerlero avatar Aug 07 '23 04:08 gerlero

On further thought, I'm not sure how this might interact with shared fixtures. As in, the teardowns must be called, but I haven't been able to tell or test whether this might prematurely tear down a shared fixture that is being used by some other test.

gerlero avatar Aug 07 '23 16:08 gerlero

I've rebased the branch to keep it up to date, yet my previous comment still stands.

gerlero avatar Nov 30 '23 13:11 gerlero