]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-61215: threadingmock: Improve test suite to avoid race conditions (#106822)
authorMario Corchero <mcorcherojim@bloomberg.net>
Mon, 17 Jul 2023 18:57:40 +0000 (20:57 +0200)
committerGitHub <noreply@github.com>
Mon, 17 Jul 2023 18:57:40 +0000 (18:57 +0000)
commit7e96370a946a2ca0f2f25af4ce5b3b59f020721b
tree11982b9445fa61f31ebfefd45ad7c07cb49b872e
parent2b94a05a0e45e4aae030a28b716a038ef529f8ef
gh-61215: threadingmock: Improve test suite to avoid race conditions (#106822)

threadingmock: Improve test suite to avoid race conditions

Simplify tests and split them into multiple tests to prevent assertions
from triggering race conditions.
Additionally, we rely on calling the mocks without delay to validate the
functionality of matching calls.
Lib/test/test_unittest/testmock/testthreadingmock.py