]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.12] gh-123934: Fix `MagicMock` not to reset magic method return values (GH-124038...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 19 Sep 2024 08:18:01 +0000 (10:18 +0200)
committerGitHub <noreply@github.com>
Thu, 19 Sep 2024 08:18:01 +0000 (08:18 +0000)
commite9578f6424bf65187a462b24fede56c906007bc8
tree18c328c13635d5b5dfdbeef6894dca9eb85842fb
parenta82a2f1597cdd2f791d0e39fb4fd43f38b6b4186
[3.12] gh-123934: Fix `MagicMock` not to reset magic method return values (GH-124038) (#124232)

gh-123934: Fix `MagicMock` not to reset magic method return values (GH-124038)
(cherry picked from commit 7628f67d55cb65bad9c9266e0457e468cd7e3775)

Co-authored-by: sobolevn <mail@sobolevn.me>
Lib/test/test_unittest/testmock/testmagicmethods.py
Lib/unittest/mock.py
Misc/NEWS.d/next/Library/2024-09-13-10-34-19.gh-issue-123934.yMe7mL.rst [new file with mode: 0644]