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
bpo-44566: resolve differences between asynccontextmanager and contextmanager #27024
Conversation
@contextmanager | ||
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
@ambv: Please replace |
Thanks @graingert for the PR, and @ambv for merging it |
Thanks @graingert for the PR, and @ambv for merging it |
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
The text was updated successfully, but these errors were encountered: