Skip to content

Fix: Issue #1140 - #1375

Closed
Prathamj07 wants to merge 1 commit into
pytest-dev:masterfrom
Shreevable:pytest/1140
Closed

Fix: Issue #1140#1375
Prathamj07 wants to merge 1 commit into
pytest-dev:masterfrom
Shreevable:pytest/1140

Conversation

@Prathamj07

Copy link
Copy Markdown

Summary

Fixes #1140

Deduplicate failed collection reports by nodeid instead of longrepr. Pytest's longrepr classes are eq=False dataclasses, so the same collection error from different workers never compared equal and pytest_collectreport fired once per worker under -n.

Checklist

  • Make sure to include reasonable tests for your change if necessary

  • We use towncrier for changelog management, so please add a news file into the changelog folder following these guidelines:

    • Name it $issue_id.$type for example 1140.bugfix;
    • If you don't have an issue_id change it to the PR id after creating it
    • Ensure type is one of removal, feature, bugfix, vendor, doc or trivial

@Prathamj07 Prathamj07 closed this Aug 25, 2026
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.

xdist causes duplicate reports for collector errors

1 participant