Skip to content

Fix ambiguous failure and error headings - #15102

Open
Mo-Thabet wants to merge 1 commit into
pytest-dev:mainfrom
Mo-Thabet:fix/14902-distinguishable-failure-headings
Open

Mo-Thabet wants to merge 1 commit into
pytest-dev:mainfrom
Mo-Thabet:fix/14902-distinguishable-failure-headings

Conversation

@Mo-Thabet

Copy link
Copy Markdown

Closes #14902.

Summary

  • Include the full test node ID in failure and error headings only when multiple reports share the same heading.
  • Add regression coverage for duplicate test names across modules in both fixture errors and assertion failures.

Verification

  • 252 passed, 2 skipped across testing/test_terminal.py and testing/test_reports.py.
  • Full testing/ suite: 4,533 passed, 157 skipped, 13 xfailed, 1 xpassed; one unrelated Windows test_pydoc failure due to a UTF-8 decoding error.
  • Ruff checks, formatting, and git diff --check passed.

Prepared with AI assistance under human direction and review; the commit includes the required co-author trailer.

Co-authored-by: OpenAI Codex <noreply@openai.com>
@psf-chronographer psf-chronographer Bot added the bot:chronographer:provided (automation) changelog entry is part of PR label Sep 25, 2026

This branch has not been deployed

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

Labels

bot:chronographer:provided (automation) changelog entry is part of PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

"ERROR at" test case name headings ambiguous if they use the same test case function name

1 participant