Skip to content
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-37394: Fix pure Python implementation of queue #14351

Merged
merged 1 commit into from Jun 25, 2019

Conversation

pablogsal
Copy link
Member

@pablogsal pablogsal commented Jun 24, 2019

@vstinner
Copy link
Member

vstinner commented Jun 24, 2019

test_queue didn't catch this issue, so test_queue should be fixed somehow.

IMHO test_queue should be rewritten using something like that:

py_functools = support.import_fresh_module('functools', blocked=['_functools'])
c_functools = support.import_fresh_module('functools', fresh=['_functools'])

@pablogsal pablogsal force-pushed the fix_import branch 2 times, most recently from 06595d2 to 3713388 Compare Jun 24, 2019
Lib/test/test_queue.py Outdated Show resolved Hide resolved
Lib/test/test_queue.py Outdated Show resolved Hide resolved
Copy link
Member

@vstinner vstinner left a comment

LGTM. I suggest to rephrase the commit title, mayby: "Fix pure Python implementation of queue".

I may be interesting to add NEWS entry, and maybe backport this change to 3.7 and 3.8. You have to open a bpo issue in this case (to get a bpo number).

@pablogsal pablogsal changed the title Fix import exception for queue.py when accelerator is not pressent bpo-37394: Fix pure Python implementation of queue Jun 25, 2019
@miss-islington
Copy link
Contributor

miss-islington commented Jun 25, 2019

Thanks @pablogsal for the PR 🌮🎉.. I'm working now to backport this PR to: 3.8.
🐍🍒🤖

@pablogsal pablogsal deleted the fix_import branch Jun 25, 2019
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Jun 25, 2019
…GH-14351)

(cherry picked from commit 3f5b908)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
@bedevere-bot
Copy link

bedevere-bot commented Jun 25, 2019

GH-14362 is a backport of this pull request to the 3.8 branch.

miss-islington added a commit that referenced this pull request Jun 25, 2019
(cherry picked from commit 3f5b908)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
lisroach pushed a commit to lisroach/cpython that referenced this pull request Sep 10, 2019
DinoV pushed a commit to DinoV/cpython that referenced this pull request Jan 14, 2020
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.

None yet

5 participants