Test failure with pytest 7: test_skip_with_failure_and_non_subskip[pytest-normal] #181
Closed
Description
While the plugin advertises support for pytest 7.4 and later,
Lines 29 to 31 in 2fa1a6f
in practice, test_skip_with_failure_and_non_subskip[pytest-normal]
fails with pytest 7.
You can reproduce this by temporarily modifying tox.ini
diff --git a/tox.ini b/tox.ini
index 43c01ac..3906a11 100644
--- a/tox.ini
+++ b/tox.ini
@@ -4,6 +4,7 @@ envlist = py39,py310,py311,py312,py313
[testenv]
deps =
pytest-xdist>=3.3.0
+ pytest<8
commands =
pytest {posargs:tests}
and then running tox
:
FAILED tests/test_subtests.py::TestSubTest::test_skip_with_failure_and_non_subskip[pytest-normal] - Failed: remains unmatched: 'test_skip_with_failure_and_non_subskip.py::T::test_foo \\[custom message\\] \\(i=4\\) SUBFAIL .*'
============================================================================== 1 failed, 31 passed, 7 xfailed, 1 warning in 2.19s ==============================================================================
Metadata
Assignees
Labels
No labels