KEMBAR78
bpo-39481: Fix duplicate SimpleQueue type in test_genericalias.py by gousaiyang · Pull Request #22619 · python/cpython · GitHub
Skip to content

Conversation

@gousaiyang
Copy link
Contributor

@gousaiyang gousaiyang commented Oct 9, 2020

There are two different SimpleQueue types imported (from multiprocessing.queues and queue) in Lib/test/test_genericalias.py, the second one shadowing the first one, making the first one not actually tested. Fix by using different names.

https://bugs.python.org/issue39481

Automerge-Triggered-By: @gvanrossum

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.

Good catch!

@miss-islington miss-islington merged commit b2c0a43 into python:master Oct 9, 2020
@miss-islington
Copy link
Contributor

Thanks @gousaiyang for the PR 🌮🎉.. I'm working now to backport this PR to: 3.9.
🐍🍒⛏🤖 I'm not a witch! I'm not a witch!

@miss-islington
Copy link
Contributor

Sorry, @gousaiyang, I could not cleanly backport this to 3.9 due to a conflict.
Please backport using cherry_picker on command line.
cherry_picker b2c0a43699bd9023a69e3fa554f5488a2e17e278 3.9

@miss-islington miss-islington self-assigned this Oct 9, 2020
@gvanrossum
Copy link
Member

@gousaiyang Do you need additional help using cherry_picker?

gousaiyang added a commit to gousaiyang/cpython that referenced this pull request Oct 9, 2020
…py (pythonGH-22619)

There are two different `SimpleQueue` types imported (from `multiprocessing.queues` and `queue`) in `Lib/test/test_genericalias.py`, the second one shadowing the first one, making the first one not actually tested. Fix by using different names.

Automerge-Triggered-By: @gvanrossum.
(cherry picked from commit b2c0a43)

Co-authored-by: Saiyang Gou <gousaiyang@163.com>
@bedevere-bot bedevere-bot removed the needs backport to 3.9 only security fixes label Oct 9, 2020
@bedevere-bot
Copy link

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

@gousaiyang gousaiyang deleted the bpo-39481-fix-duplicate-SimpleQueue branch October 12, 2020 19:08
gvanrossum pushed a commit that referenced this pull request Oct 12, 2020
…py (GH-22619) (#22624)

There are two different `SimpleQueue` types imported (from `multiprocessing.queues` and `queue`) in `Lib/test/test_genericalias.py`, the second one shadowing the first one, making the first one not actually tested. Fix by using different names.

Automerge-Triggered-By: @gvanrossum.
(cherry picked from commit b2c0a43)

Co-authored-by: Saiyang Gou <gousaiyang@163.com>
xzy3 pushed a commit to xzy3/cpython that referenced this pull request Oct 18, 2020
…thonGH-22619)

There are two different `SimpleQueue` types imported (from `multiprocessing.queues` and `queue`) in `Lib/test/test_genericalias.py`, the second one shadowing the first one, making the first one not actually tested. Fix by using different names.

Automerge-Triggered-By: @gvanrossum
adorilson pushed a commit to adorilson/cpython that referenced this pull request Mar 13, 2021
…thonGH-22619)

There are two different `SimpleQueue` types imported (from `multiprocessing.queues` and `queue`) in `Lib/test/test_genericalias.py`, the second one shadowing the first one, making the first one not actually tested. Fix by using different names.

Automerge-Triggered-By: @gvanrossum
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip news tests Tests in the Lib/test dir

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants