gh-150175: Fix ThreadingMock call_count race condition (#150176)
ThreadingMock._increment_mock_call() was not thread-safe. Multiple threads calling the mock simultaneously could lose increments due to race conditions on call_count and other attributes. Fix by overriding _increment_mock_call in ThreadingMixin and wrapping it with the existing _mock_calls_events_lock.
S
saisneha196 committed
388e023fe1197c1ffed374520ed45df4ac72b8f5
Parent: cb3b4b9
Committed by GitHub <noreply@github.com>
on 5/21/2026, 7:38:07 AM