Skip to content

bpo-46672: fix NameError in asyncio.gather if type check fails#31187

Merged
asvetlov merged 2 commits into
python:mainfrom
sobolevn:issue-46672
Feb 20, 2022
Merged

bpo-46672: fix NameError in asyncio.gather if type check fails#31187
asvetlov merged 2 commits into
python:mainfrom
sobolevn:issue-46672

Conversation

@sobolevn

@sobolevn sobolevn commented Feb 7, 2022

Copy link
Copy Markdown
Member

I am a bit unsure about the full coverage of if outer is None or outer.done(): condition. Does it cover all corner cases?

https://bugs.python.org/issue46672

Comment thread Misc/NEWS.d/next/Library/2022-02-07-13-15-16.bpo-46672.4swIjx.rst Outdated
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Comment thread Lib/asyncio/tasks.py

@kumaraditya303 kumaraditya303 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@JelleZijlstra JelleZijlstra left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Confirmed that the new test fails without the fix.

@asvetlov
asvetlov merged commit 4ab8167 into python:main Feb 20, 2022
@miss-islington

Copy link
Copy Markdown
Contributor

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

@miss-islington

Copy link
Copy Markdown
Contributor

Sorry, @sobolevn and @asvetlov, I could not cleanly backport this to 3.9 due to a conflict.
Please backport using cherry_picker on command line.
cherry_picker 4ab8167b9c60d1a04b2e3116d0c52db254b68cda 3.9

@bedevere-bot

Copy link
Copy Markdown

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

@bedevere-bot bedevere-bot removed the needs backport to 3.10 only security fixes label Feb 20, 2022
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Feb 20, 2022
…ythonGH-31187)

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
(cherry picked from commit 4ab8167)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
@bedevere-bot

Copy link
Copy Markdown

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

asvetlov pushed a commit to asvetlov/cpython that referenced this pull request Feb 20, 2022
…ils (pythonGH-31187)

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>.
(cherry picked from commit 4ab8167)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
asvetlov added a commit that referenced this pull request Feb 20, 2022
…ils (GH-31187) (GH-31441)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
asvetlov pushed a commit that referenced this pull request Feb 20, 2022
…H-31187) (GH-31440)

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
(cherry picked from commit 4ab8167)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
hello-adam pushed a commit to hello-adam/cpython that referenced this pull request Jun 2, 2022
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.

8 participants