Skip to content

Conversation

@bluetech
Copy link
Member

I forgot to git add the changelog for #10907.

@bluetech bluetech enabled auto-merge April 16, 2023 15:23
Copy link
Member

@Pierre-Sassoulas Pierre-Sassoulas left a comment

Choose a reason for hiding this comment

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

Small suggestion for terseness.

Comment on lines +1 to +5
When an exception traceback to be displayed is completely filtered out (by mechanisms such as ``__tracebackhide__``, internal frames, and similar), now only the exception string and the following message are shown:

"All traceback entries are hidden. Pass `--full-trace` to see hidden and internal frames.".

Previously, the last frame of the traceback was shown, even though it was hidden.
Copy link
Member

@Pierre-Sassoulas Pierre-Sassoulas Apr 16, 2023

Choose a reason for hiding this comment

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

Suggested change
When an exception traceback to be displayed is completely filtered out (by mechanisms such as ``__tracebackhide__``, internal frames, and similar), now only the exception string and the following message are shown:
"All traceback entries are hidden. Pass `--full-trace` to see hidden and internal frames.".
Previously, the last frame of the traceback was shown, even though it was hidden.
The last frame of the traceback is not mistakenly shown anymore when exceptions tracebacks are completely filtered out (by mechanisms such as ``__tracebackhide__``, internal frames, and similar) without the `--full-trace` option.

Copy link
Member Author

Choose a reason for hiding this comment

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

@Pierre-Sassoulas thanks for the review, the PR was on auto-merge so merged before I could reply.

I did want to explictly mention the complete message, for the benefit of users searching the string in search engines and such.

Copy link
Member

Choose a reason for hiding this comment

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

Make sense ! No problem it was a nit anyway.

@bluetech bluetech merged commit adf891a into pytest-dev:main Apr 16, 2023
@bluetech bluetech deleted the missing-changelog branch April 16, 2023 16:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants