Skip to content

Test failure with pytest 7: test_skip_with_failure_and_non_subskip[pytest-normal] #181

Closed
@musicinmybrain

Description

While the plugin advertises support for pytest 7.4 and later,

install_requires =
attrs>=19.2.0
pytest>=7.4

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions