Skip to content

Conversation

@graingert
Copy link
Contributor

@graingert graingert commented Jul 4, 2021

@graingert graingert changed the title resolve differences between asynccontextmanager and contextmanager bpo-44566 resolve differences between asynccontextmanager and contextmanager Jul 5, 2021
@graingert graingert changed the title bpo-44566 resolve differences between asynccontextmanager and contextmanager bpo-44566: resolve differences between asynccontextmanager and contextmanager Jul 5, 2021
def woohoo():
yield
try:
with self.assertWarnsRegex(DeprecationWarning,
Copy link
Contributor Author

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?

Copy link
Contributor Author

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

@graingert graingert marked this pull request as ready for review July 5, 2021 13:17
@graingert graingert requested a review from 1st1 as a code owner July 5, 2021 13:17
@graingert
Copy link
Contributor Author

@ncoghlan

Copy link
Contributor

@adamchainz adamchainz left a 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 ambv merged commit 7f1c330 into python:main Jul 20, 2021
@bedevere-bot
Copy link

@ambv: Please replace # with GH- in the commit message next time. Thanks!

@miss-islington
Copy link
Contributor

Thanks @graingert for the PR, and @ambv for merging it 🌮🎉.. I'm working now to backport this PR to: 3.10.
🐍🍒⛏🤖

@miss-islington
Copy link
Contributor

Thanks @graingert for the PR, and @ambv for merging it 🌮🎉.. I'm working now to backport this PR to: 3.9.
🐍🍒⛏🤖

@bedevere-bot
Copy link

GH-27266 is a backport of this pull request to the 3.10 branch.

@miss-islington
Copy link
Contributor

Sorry, @graingert and @ambv, I could not cleanly backport this to 3.9 due to a conflict.
Please backport using cherry_picker on command line.
cherry_picker 7f1c330da31c54e028dceaf3610877914c2a4497 3.9

@bedevere-bot bedevere-bot removed the needs backport to 3.10 only security fixes label Jul 20, 2021
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Jul 20, 2021
…tmanager (pythonGH-27024)

(cherry picked from commit 7f1c330)

Co-authored-by: Thomas Grainger <tagrain@gmail.com>
@graingert graingert deleted the patch-8 branch July 20, 2021 18:33
ambv pushed a commit to ambv/cpython that referenced this pull request Jul 20, 2021
…contextmanager (pythonGH-27024).

(cherry picked from commit 7f1c330)

Co-authored-by: Thomas Grainger <tagrain@gmail.com>
@bedevere-bot
Copy link

GH-27269 is a backport of this pull request to the 3.9 branch.

ambv pushed a commit that referenced this pull request Jul 20, 2021
…tmanager (GH-27024) (#27266)

(cherry picked from commit 7f1c330)

Co-authored-by: Thomas Grainger <tagrain@gmail.com>
ambv added a commit that referenced this pull request Jul 20, 2021
…contextmanager (GH-27024). (#27269)

(cherry picked from commit 7f1c330)

Co-authored-by: Thomas Grainger <tagrain@gmail.com>
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.

6 participants