Skip to content

Fix subtest rerun reporting with xdist - #352

Open
janmrow wants to merge 1 commit into
pytest-dev:masterfrom
janmrow:fix-350-xdist-subtests
Open

Fix subtest rerun reporting with xdist#352
janmrow wants to merge 1 commit into
pytest-dev:masterfrom
janmrow:fix-350-xdist-subtests

Conversation

@janmrow

@janmrow janmrow commented Aug 24, 2026

Copy link
Copy Markdown
Contributor

Fixes #350.

This fixes an issue where a built-in subtest that passes on rerun could still leave a stale failure under xdist, causing the session to fail.

The fix removes only failures from the superseded attempt, while preserving results from other workers and duplicate collected items.

Regression tests cover successful and exhausted reruns, cross-worker isolation, and duplicate collection under xdist.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Successful subtest rerun still reports failure under xdist

1 participant