Skip to content

[3.9] bpo-42532: Check if NonCallableMock's spec_arg is not None instead of call its __bool__ function (GH-23613) #23676

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

Merged
merged 1 commit into from
Dec 14, 2020

Conversation

tirkarthi
Copy link
Member

@tirkarthi tirkarthi commented Dec 7, 2020

Check if NonCallableMock's spec_arg is not None instead of call its bool function
(cherry picked from commit c598a04)

Co-authored-by: idanw206 31290383+idanw206@users.noreply.github.com

https://bugs.python.org/issue42532

…ead of call its __bool__ function (GH23613)

Check if NonCallableMock's spec_arg is not None instead of call its __bool__ function
(cherry picked from commit c598a04)

Co-authored-by: idanw206 <31290383+idanw206@users.noreply.github.com>
@idanw206
Copy link
Contributor

idanw206 commented Dec 7, 2020

Thanks for the backport! Looking forward for this to be released!

@idanw206
Copy link
Contributor

@tirkarthi @cjw296 Can one of you guys merge it? Thanks!

@tirkarthi tirkarthi merged commit 14f2a12 into python:3.9 Dec 14, 2020
@tirkarthi tirkarthi deleted the backport-c598a04-3.9 branch December 14, 2020 05:49
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.

5 participants