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

Method __init__

Lib/unittest/mock.py:3088–3095  ·  view source on GitHub ↗
(self, *args, timeout=_timeout_unset, **kwargs)

Source from the content-addressed store, hash-verified

3086 return super()._get_child_mock(**kw)
3087
3088 def __init__(self, *args, timeout=_timeout_unset, **kwargs):
3089 super().__init__(*args, **kwargs)
3090 if timeout is _timeout_unset:
3091 timeout = self.DEFAULT_TIMEOUT
3092 self.__dict__["_mock_event"] = threading.Event() # Event for any call
3093 self.__dict__["_mock_calls_events"] = [] # Events for each of the calls
3094 self.__dict__["_mock_calls_events_lock"] = threading.Lock()
3095 self.__dict__["_mock_wait_timeout"] = timeout
3096
3097 def reset_mock(self, /, *args, **kwargs):
3098 """

Callers

nothing calls this directly

Calls 4

superClass · 0.85
EventMethod · 0.80
LockMethod · 0.80
__init__Method · 0.45

Tested by

no test coverage detected