Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

runner: avoid adding uninteresting entry to tracebacks #12259

Merged
merged 1 commit into from Apr 28, 2024

Conversation

bluetech
Copy link
Member

In these two cases which re-raise an immediately-caught exception, do the re-raising with raise instead of raise exc, because the raise exc adds an uninteresting entry to the exception's traceback (that of itself), while raise doesn't.

In these two cases which re-raise an immediately-caught exception, do
the re-raising with `raise` instead of `raise exc`, because the `raise
exc` adds an uninteresting entry to the exception's traceback (that of
itself), while `raise` doesn't.
@bluetech bluetech merged commit 127a372 into pytest-dev:main Apr 28, 2024
24 checks passed
@bluetech bluetech deleted the plain-raise branch April 28, 2024 08:21
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.

None yet

2 participants