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

gh-120732: Fix name passing to Mock, when using kwargs to create_autospec #120737

Merged
merged 1 commit into from
Jun 19, 2024

Conversation

sobolevn
Copy link
Member

@sobolevn sobolevn commented Jun 19, 2024

Simple idea about how to fix this. I think that we should not add name to _kwargs if we don't need it there.

@cjw296 cjw296 added needs backport to 3.12 bug and security fixes needs backport to 3.13 bugs and security fixes labels Jun 19, 2024
@cjw296 cjw296 merged commit 1e48156 into python:main Jun 19, 2024
38 checks passed
@miss-islington-app
Copy link

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

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Jun 19, 2024
…create_autospec` (pythonGH-120737)

(cherry picked from commit 1e48156)

Co-authored-by: Nikita Sobolev <[email protected]>
@bedevere-app
Copy link

bedevere-app bot commented Jun 19, 2024

GH-120760 is a backport of this pull request to the 3.13 branch.

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Jun 19, 2024
…create_autospec` (pythonGH-120737)

(cherry picked from commit 1e48156)

Co-authored-by: Nikita Sobolev <[email protected]>
@bedevere-app bedevere-app bot removed the needs backport to 3.13 bugs and security fixes label Jun 19, 2024
@bedevere-app
Copy link

bedevere-app bot commented Jun 19, 2024

GH-120761 is a backport of this pull request to the 3.12 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.12 bug and security fixes label Jun 19, 2024
cjw296 pushed a commit that referenced this pull request Jun 19, 2024
…`create_autospec` (GH-120737) (#120761)

gh-120732: Fix `name` passing to `Mock`, when using kwargs to `create_autospec` (GH-120737)
(cherry picked from commit 1e48156)

Co-authored-by: Nikita Sobolev <[email protected]>
cjw296 pushed a commit that referenced this pull request Jun 19, 2024
…`create_autospec` (GH-120737) (#120760)

gh-120732: Fix `name` passing to `Mock`, when using kwargs to `create_autospec` (GH-120737)
(cherry picked from commit 1e48156)

Co-authored-by: Nikita Sobolev <[email protected]>
mrahtz pushed a commit to mrahtz/cpython that referenced this pull request Jun 30, 2024
noahbkim pushed a commit to hudson-trading/cpython that referenced this pull request Jul 11, 2024
estyxx pushed a commit to estyxx/cpython that referenced this pull request Jul 17, 2024
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.

3 participants