Skip to content

Conversation

@gerlero
Copy link
Contributor

@gerlero gerlero commented Aug 7, 2023

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

@gerlero gerlero changed the title Fix 44 Invoke teardowns of filled fixtures on fixture errors Aug 7, 2023
@gerlero gerlero changed the title Invoke teardowns of filled fixtures on fixture errors Tear down filled fixtures on fixture errors Aug 7, 2023
@gerlero
Copy link
Contributor Author

gerlero commented Aug 7, 2023

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
Copy link
Contributor Author

gerlero commented Nov 30, 2023

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

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fixture teardowns may not run when another fixture fails

1 participant