def test_skip_location_with_runxfail(testdir):
    testdir.makepyfile(test_it="import pytest\n@pytest.mark.skip\ndef test_skip_location():\n    assert 0\n")
    result = testdir.runpytest("-rs", "--runxfail")
    result.assert_outcomes(skipped=1)
    stdout = result.stdout.str()
    assert "skipping.py" not in stdout
    assert "test_it.py" in stdout
