MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / start

Method start

tools/python-3.11.9-amd64/Lib/unittest/mock.py:1592–1596  ·  view source on GitHub ↗

Activate a patch, returning any created mock.

(self)

Source from the content-addressed store, hash-verified

1590
1591
1592 def start(self):
1593 """Activate a patch, returning any created mock."""
1594 result = self.__enter__()
1595 self._active_patches.append(self)
1596 return result
1597
1598
1599 def stop(self):

Callers 15

__main__.pyFile · 0.45
_unquoteFunction · 0.45
assertNotRegexMethod · 0.45
test_autospec_mockMethod · 0.45
test_filter_dirMethod · 0.45
test_manager_mockMethod · 0.45
test_patch_start_stopMethod · 0.45
test_stop_idempotentMethod · 0.45

Calls 2

__enter__Method · 0.95
appendMethod · 0.45