Skip to content

Avoid duplicate function arguments when --showlocals is enabled - #15156

Open
SemTiOne wants to merge 3 commits into
pytest-dev:mainfrom
SemTiOne:fix-5675-showlocals-dedupe
Open

SemTiOne wants to merge 3 commits into
pytest-dev:mainfrom
SemTiOne:fix-5675-showlocals-dedupe

Conversation

@SemTiOne

@SemTiOne SemTiOne commented Oct 10, 2026 •

Copy link
Copy Markdown
Contributor

When --showlocals is enabled, pytest displays function arguments both in the function-arguments block and in the locals output.

This change omits the separate function-arguments block because the locals output already includes them.

Note: Default verbosity already truncates argument representations. This PR fixes duplicate argument display with --showlocals and leaves the intentional untruncated output under -vvv unchanged.

Closes #5675.

  • Allow maintainers to push and squash when merging my commits. Please uncheck this if you prefer to squash the commits yourself.

@psf-chronographer psf-chronographer Bot added the bot:chronographer:provided (automation) changelog entry is part of PR label Oct 10, 2026
Co-authored-by: OpenAI GPT-6 Luna <noreply@openai.com>
@SemTiOne
SemTiOne force-pushed the fix-5675-showlocals-dedupe branch from 765fc5c to b144352 Compare October 10, 2026 08:46
@SemTiOne
SemTiOne marked this pull request as ready for review October 10, 2026 09:48

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.

Unwieldy inline display of helper function's parameters

1 participant