]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] 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:34:37 +0000 (13:34 +0100)
committerGitHub <noreply@github.com>
Tue, 10 Mar 2026 12:34:37 +0000 (12:34 +0000)
commit4e332464b4f4e0f877bf91aca19d11b9ebe80c86
tree80778e4d2bbaecc954e615d49db49454db8f9eb9
parent80204f763c9ef1e9af8f155be73581ba566bfcec
[3.13] gh-142651: use `NonCallableMock._lock` for thread safety of `call_count` (GH-142922) (#145740)

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