Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tear down filled fixtures on fixture errors #45

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

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