]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-135368: Fix mocks on dataclass specs with `instance=True` (#135421)
authorsobolevn <mail@sobolevn.me>
Sat, 14 Jun 2025 08:46:43 +0000 (11:46 +0300)
committerGitHub <noreply@github.com>
Sat, 14 Jun 2025 08:46:43 +0000 (09:46 +0100)
commitc8319a3fea9ff7f9b49008be3b5d681112bbe7f3
treecbe60abecf1b66d1d4c0bb9edb9f5b1e59f54bb0
parentc2bb3f9843bc4763d6d41e883dbe9525f5155a4a
gh-135368: Fix mocks on dataclass specs with `instance=True` (#135421)

* gh-135368: Fix mocks on dataclass specs with `instance=True`

* Extend dataclass mock_methods

---------

Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
Lib/test/test_unittest/testmock/testhelpers.py
Lib/unittest/mock.py
Misc/NEWS.d/next/Library/2025-06-12-10-45-02.gh-issue-135368.OjWVHL.rst [new file with mode: 0644]