MCPcopy Index your code
hub / github.com/RustPython/RustPython / __init__

Method __init__

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

Source from the content-addressed store, hash-verified

3079 return super()._get_child_mock(**kw)
3080
3081 def __init__(self, *args, timeout=_timeout_unset, **kwargs):
3082 super().__init__(*args, **kwargs)
3083 if timeout is _timeout_unset:
3084 timeout = self.DEFAULT_TIMEOUT
3085 self.__dict__["_mock_event"] = threading.Event() # Event for any call
3086 self.__dict__["_mock_calls_events"] = [] # Events for each of the calls
3087 self.__dict__["_mock_calls_events_lock"] = threading.Lock()
3088 self.__dict__["_mock_wait_timeout"] = timeout
3089
3090 def reset_mock(self, /, *args, **kwargs):
3091 """

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