Skip to content

code: minor refactors and code improvements around exception formatting#14573

Merged
bluetech merged 6 commits into
pytest-dev:mainfrom
bluetech:repr-doc
Jun 7, 2026
Merged

code: minor refactors and code improvements around exception formatting#14573
bluetech merged 6 commits into
pytest-dev:mainfrom
bluetech:repr-doc

Conversation

@bluetech
Copy link
Copy Markdown
Member

@bluetech bluetech commented Jun 7, 2026

I've been reading this code when looking at exception group formatting, and made some tweaks. Please see the commits.

bluetech added 6 commits June 4, 2026 14:53
Already inherited from `ExceptionRepr`.
I think the code is clearer with the init is done in one shot.
"Formatted Excinfo" is a bit misleading, this class formats an
ExceptionInfo, it isn't itself a formatted exception info.
They are not very helpful but just to give a brief description.
@bluetech bluetech added the skip news used on prs to opt out of the changelog requirement label Jun 7, 2026
Copy link
Copy Markdown
Member

@RonnyPfannschmidt RonnyPfannschmidt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nicely done, 👍

@bluetech
Copy link
Copy Markdown
Member Author

bluetech commented Jun 7, 2026

Thanks for the review @RonnyPfannschmidt

@bluetech bluetech merged commit 9b27bec into pytest-dev:main Jun 7, 2026
36 checks passed
@bluetech bluetech deleted the repr-doc branch June 7, 2026 15:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip news used on prs to opt out of the changelog requirement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants