Assertion Error in fixture teardown when test failed is causing crash if '-x' option is used and more than one test executed #9421
Labels
topic: fixtures
anything involving fixtures directly or indirectly
type: bug
problem that needs to be addressed
Problem happens when using
-x
option and more than one test are selected to be executed. Then, if assertion fails for one test and another exception is raised in fixture teardown (in this case another AssertionError), pytest crashes and exception is thrown instead of giving test report.This is the example code to reproduce the issue:
Output of test execution
If executed without
-x
option, this is the output:pip list
:Versions:
Checklist:
pip list
from the virtual environment you are usingThe text was updated successfully, but these errors were encountered: