Skip to content
This repository was archived by the owner on Nov 11, 2025. It is now read-only.
This repository was archived by the owner on Nov 11, 2025. It is now read-only.

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

@musicinmybrain

Description

@musicinmybrain

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

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