Skip to content

Add --tb-hide-internal option to hide pytest/pluggy frames with --full-trace - #14708

Open
pctablet505 wants to merge 1 commit into
pytest-dev:mainfrom
pctablet505:fix-9509-hide-pluggy-full-trace
Open

pctablet505 wants to merge 1 commit into
pytest-dev:mainfrom
pctablet505:fix-9509-hide-pluggy-full-trace

Conversation

@pctablet505

@pctablet505 pctablet505 commented Jul 15, 2026 •

Copy link
Copy Markdown

Fixes #9509.

Adds --tb-hide-internal as a companion to --full-trace so the long traceback can be shown without pytest/pluggy and dynamically generated frames. The default --full-trace behavior is unchanged.

Includes regression tests, docs, and a changelog entry.

@psf-chronographer psf-chronographer Bot added the bot:chronographer:provided (automation) changelog entry is part of PR label Jul 15, 2026
@pctablet505 pctablet505 changed the title feat: option to hide pluggy frames even with --full-trace Add option to hide pytest/pluggy frames with Jul 15, 2026
@pctablet505 pctablet505 changed the title Add option to hide pytest/pluggy frames with Add --tb-hide-internal option to hide pytest/pluggy frames with --full-trace Jul 15, 2026
@pctablet505
pctablet505 marked this pull request as ready for review July 24, 2026 16:42
@pctablet505
pctablet505 force-pushed the fix-9509-hide-pluggy-full-trace branch from ffc1ebe to 212e3ad Compare August 21, 2026 15:19
@pctablet505
pctablet505 force-pushed the fix-9509-hide-pluggy-full-trace branch from 212e3ad to c772c3a Compare September 11, 2026 09:46
Added --tb-hide-internal option that, when used together with --full-trace,
hides pytest/pluggy internal frames from the traceback while still showing
the full user-written traceback.

Fixes pytest-dev#9509
@pctablet505
pctablet505 force-pushed the fix-9509-hide-pluggy-full-trace branch from c772c3a to 83d99c6 Compare September 28, 2026 09:25

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.

Option to hide pluggy even with --full-trace is used

1 participant