]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] gh-142651: make `Mock.call_count` thread-safe (GH-142656) (#142744)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 15 Dec 2025 12:52:11 +0000 (13:52 +0100)
committerGitHub <noreply@github.com>
Mon, 15 Dec 2025 12:52:11 +0000 (18:22 +0530)
commit8ebda57bb17c542b696eb4e60e14ef2399ba1c25
treef0989422ff68b06a04c9bc53e9e73e8d5ba9586a
parent7957bfd1ac2755bab13ca05c8377840aa5c89f8a
[3.13] gh-142651: make `Mock.call_count` thread-safe (GH-142656) (#142744)

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]