Skip to content

Improve pytester outcome parsing error - #14838

Open
Bortlesboat wants to merge 1 commit into
pytest-dev:mainfrom
Bortlesboat:agent/13369-pytester-summary-error
Open

Improve pytester outcome parsing error#14838
Bortlesboat wants to merge 1 commit into
pytest-dev:mainfrom
Bortlesboat:agent/13369-pytester-summary-error

Conversation

@Bortlesboat

Copy link
Copy Markdown
Contributor

Closes #13369

RunResult.assert_outcomes() depends on pytest's standard terminal summary. If
an auto-loaded plugin replaces or removes that summary, the previous exception
did not explain the likely cause.

This change:

  • makes the missing-summary error point to output-changing plugins;
  • names -p no:<plugin> and PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 as isolation options;
  • documents that assert_outcomes() parses the standard terminal summary; and
  • adds a focused regression assertion and changelog entry.

This documents the current behavior; it does not introduce a new reporting
interface or change plugin loading.

Validation:

  • testing/test_pytester.py: 51 passed, 1 skipped, 1 xfailed
  • all applicable changed-file pre-commit hooks passed
  • git diff --check

AI assistance: OpenAI Codex helped draft the code, tests, documentation, and PR
description. I reviewed the complete diff and validation evidence, understand
the change, and take responsibility for the contribution and follow-up review.

@psf-chronographer psf-chronographer Bot added the bot:chronographer:provided (automation) changelog entry is part of PR label Aug 6, 2026
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.

Plugins modifying output can break pytester

1 participant