]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.14] gh-142651: use `NonCallableMock._lock` for thread safety of `call_count` ...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 10 Mar 2026 12:39:45 +0000 (13:39 +0100)
committerGitHub <noreply@github.com>
Tue, 10 Mar 2026 12:39:45 +0000 (12:39 +0000)
commita5ed66df8ac5ef951f39a4e5591ac3895db4d140
tree9324c9a11d3e323e9dcacf962933cf1dcc9bc910
parented2df30f4065eac4b016fec43514f95da11f43f4
[3.14] gh-142651: use `NonCallableMock._lock` for thread safety of `call_count` (GH-142922) (#145739)

gh-142651: use `NonCallableMock._lock` for thread safety of `call_count` (GH-142922)
(cherry picked from commit 728e4a075e3dae7e04edf90ad137a35073deb141)

Co-authored-by: Kumar Aditya <kumaraditya@python.org>
Lib/unittest/mock.py