Closed sd148684 closed 4 months ago
Update: tested with pytest-rerunfailures==11.1.2, session/class fixtures teardown successfully. But rerun strategy seems broken, test was re-run 3 times despite of only_rerun
or rerun_except
settings (possibly related to #225 ).
Given two fixtures like this:
Create and run a test function with
pytest.mark.flaky
andrerun_except
:The session teardown was missing in outputs (regular pytest outputs are omitted).
The same issue occurs with
only_rerun
.And the same issue occurs without
pytest.mark.flaky
mark but run with command arguments.Class scope fixture won't teardown either:
Session and class fixtures DO teardown normally on those tests:
Output below, session fixture teardown normally.
Tested with a fresh new venv(Python 3.11), pytest==7.4.0, pytest-rerunfailures=12.0 .