]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.14] gh-142651: make `Mock.call_count` thread-safe (GH-142656) (#142743)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 15 Dec 2025 12:51:52 +0000 (13:51 +0100)
committerGitHub <noreply@github.com>
Mon, 15 Dec 2025 12:51:52 +0000 (18:21 +0530)
commitf17281741c623eefe364ae4d7fd643c44bffe208
tree078a477c5a80ee4182b9769e9c3b467a9669aeb0
parentbf4f5087043d8ea16ce868894bd0b9dedcf1ab3a
[3.14] gh-142651: make `Mock.call_count` thread-safe (GH-142656) (#142743)

gh-142651: make `Mock.call_count` thread-safe (GH-142656)
(cherry picked from commit 850f95f6f64a55920cbb91b022b70b736bd20ed8)

Co-authored-by: chaope <pengchaoandy@gmail.com>
Lib/test/test_unittest/testmock/testthreadingmock.py
Lib/unittest/mock.py
Misc/NEWS.d/next/Library/2025-12-13-06-17-44.gh-issue-142651.ZRtBu4.rst [new file with mode: 0644]