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
Function scope fixture with failing finalizer called only once #498
Comments
Original comment by Anton P. (BitBucket: anton7811, GitHub: anton7811): The issues is reproduced on pytest 2.5.2 Additional info:
I expect that function level fixture will be recreated for the next test function, or at least all other test functions will fail without launching. I don't see any reason why they have to be launched in case fixture cannot be set up. |
Original comment by holger krekel (BitBucket: hpk42, GitHub: hpk42): I have a fix in https://bitbucket.org/hpk42/pytest/pull-request/151/fix-issue498-if-a-fixture-finalizer-fails which will properly invalidate fixtures when their finalizers fail. |
Original comment by Ronny Pfannschmidt (BitBucket: RonnyPfannschmidt, GitHub: RonnyPfannschmidt): Merged in hpk42/pytest-hpk/issue498 (pull request #151) fix issue498: if a fixture finalizer fails, make sure that the fixture |
Original comment by Ronny Pfannschmidt (BitBucket: RonnyPfannschmidt, GitHub: RonnyPfannschmidt): fix issue498: if a fixture finalizer fails, make sure that the fixture |
Originally reported by: Alexander Steinert (BitBucket: stony8, GitHub: stony8)
The text was updated successfully, but these errors were encountered: