xfailed test that fails during finalizer is reported twice #5164
Labels
topic: fixtures
anything involving fixtures directly or indirectly
topic: marks
related to marks, either the general marks or builtin
type: bug
problem that needs to be addressed
If a that is xfailed fails during a finalizer the test is reported twice. It's reported as skipped and an error. This also results in pytests exit code being 1 in an otherwise successful run.
If a test fails during a finalizer and it's xfailed it should probably only be reported as skipped.
I'm using pytest 3.3.2 on Ubuntu 18.04.1.
The following example should reproduce the problem:
The text was updated successfully, but these errors were encountered: