-
-
Notifications
You must be signed in to change notification settings - Fork 33.3k
bpo-44566: resolve differences between asynccontextmanager and contextmanager #27024
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
Conversation
| def woohoo(): | ||
| yield | ||
| try: | ||
| with self.assertWarnsRegex(DeprecationWarning, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this warning is from py2?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah the exception means this warning is never checked for
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM apart from some small comments
|
@ambv: Please replace |
|
Thanks @graingert for the PR, and @ambv for merging it 🌮🎉.. I'm working now to backport this PR to: 3.10. |
|
Thanks @graingert for the PR, and @ambv for merging it 🌮🎉.. I'm working now to backport this PR to: 3.9. |
|
GH-27266 is a backport of this pull request to the 3.10 branch. |
|
Sorry, @graingert and @ambv, I could not cleanly backport this to |
…tmanager (pythonGH-27024) (cherry picked from commit 7f1c330) Co-authored-by: Thomas Grainger <tagrain@gmail.com>
…contextmanager (pythonGH-27024). (cherry picked from commit 7f1c330) Co-authored-by: Thomas Grainger <tagrain@gmail.com>
|
GH-27269 is a backport of this pull request to the 3.9 branch. |
https://bugs.python.org/issue44566