]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.12] gh-120732: Fix `name` passing to `Mock`, when using kwargs to `create_autospec...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 19 Jun 2024 20:53:19 +0000 (22:53 +0200)
committerGitHub <noreply@github.com>
Wed, 19 Jun 2024 20:53:19 +0000 (20:53 +0000)
commit34ace5ba4c5764a27a01dc8139232138c8269000
tree6a61b8e1f22498714ceba1e0b3009e016f90f0e6
parentd6a36c97c239c71522a9f66ef7821fe30e11e78e
[3.12] gh-120732: Fix `name` passing to `Mock`, when using kwargs to `create_autospec` (GH-120737) (#120761)

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

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Lib/test/test_unittest/testmock/testmock.py
Lib/unittest/mock.py
Misc/NEWS.d/next/Library/2024-06-19-15-06-58.gh-issue-120732.OvYV9b.rst [new file with mode: 0644]