pytest-asyncio-cooperative
pytest-asyncio-cooperative copied to clipboard
Tear down filled fixtures on fixture errors
Fix #44 by explicitly tearing down already filled fixtures when a fixture function raises an exception
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.
I've rebased the branch to keep it up to date, yet my previous comment still stands.