MCPcopy Index your code
hub / github.com/python/cpython / _mock_call

Method _mock_call

Lib/unittest/mock.py:3114–3122  ·  view source on GitHub ↗
(self, *args, **kwargs)

Source from the content-addressed store, hash-verified

3112 return new_event
3113
3114 def _mock_call(self, *args, **kwargs):
3115 ret_value = super()._mock_call(*args, **kwargs)
3116
3117 call_event = self.__get_event(args, kwargs)
3118 call_event.set()
3119
3120 self._mock_event.set()
3121
3122 return ret_value
3123
3124 def wait_until_called(self, *, timeout=_timeout_unset):
3125 """Wait until the mock object is called.

Callers

nothing calls this directly

Calls 4

__get_eventMethod · 0.95
superClass · 0.85
_mock_callMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected