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

gh-92118: fix traceback of exceptions propagated from inside a contextlib.contextmanager #92202

Merged
merged 4 commits into from
May 4, 2022

Conversation

iritkatriel
Copy link
Member

@iritkatriel iritkatriel commented May 2, 2022

Copy link
Contributor

@hauntsaninja hauntsaninja left a comment

Choose a reason for hiding this comment

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

Thanks for the quick fix! I think we might need to do this in the RuntimeError except clause as well.

Copy link
Member

@gvanrossum gvanrossum left a comment

Choose a reason for hiding this comment

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

Looks like a thing.

Lib/test/test_contextlib.py Outdated Show resolved Hide resolved
Lib/test/test_contextlib.py Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stdlib Python modules in the Lib dir
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants