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

pytest yield will attempt to cleanup after exceptions #1

Open
strangemonad opened this issue Jan 29, 2024 · 1 comment
Open

pytest yield will attempt to cleanup after exceptions #1

strangemonad opened this issue Jan 29, 2024 · 1 comment

Comments

@strangemonad
Copy link

In index.adoc in the section after the pytest yield example, there's a not that says that exceptions raised during a test will not run the cleanup code after the test. That shouldn't be the case https://pytest.org/en/7.4.x/how-to/fixtures.html#handling-errors-for-yield-fixture

@kiview
Copy link
Member

kiview commented Apr 25, 2024

What is your proposal how we should formulate the section instead @strangemonad?

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

No branches or pull requests

2 participants