You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix case of incorrect status when test was skipped in setup.
When some test was skipped in the setup, RP wrongly identified its
status, by assigning to it the status of the last non-skipped test.
Test to reproduce:
"""
import pytest
@pytest.fixture
def skip_in_setup():
pytest.skip()
def test_that_fails():
assert False
@pytest.mark.usefixtures("skip_in_setup")
def test_skip_in_setup(self):
pass
"""
In this example the first test fails and the second is skipped.
RP identified both as failures.
0 commit comments