]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.14] gh-135368: Fix mocks on dataclass specs with `instance=True` (GH-135421) ...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sat, 14 Jun 2025 09:11:31 +0000 (11:11 +0200)
committerGitHub <noreply@github.com>
Sat, 14 Jun 2025 09:11:31 +0000 (09:11 +0000)
commit79df5d1c54f9c2aaccae48a75e40ac629ed0cca0
tree092c6a068362e779672c41e37a34af597803d2a5
parent7499bcd530d173b9aa024219017c579278960fb4
[3.14] gh-135368: Fix mocks on dataclass specs with `instance=True` (GH-135421) (#135503)

gh-135368: Fix mocks on dataclass specs with `instance=True` (GH-135421)

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

* Extend dataclass mock_methods

---------
(cherry picked from commit c8319a3fea9ff7f9b49008be3b5d681112bbe7f3)

Co-authored-by: sobolevn <mail@sobolevn.me>
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]