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

Method stop

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

Stop an active patch.

(self)

Source from the content-addressed store, hash-verified

1597
1598
1599 def stop(self):
1600 """Stop an active patch."""
1601 try:
1602 self._active_patches.remove(self)
1603 except ValueError:
1604 # If the patch hasn't been started this will fail
1605 return None
1606
1607 return self.__exit__(None, None, None)
1608
1609
1610

Callers 3

__call__Method · 0.45
_patch_stopallFunction · 0.45
cleanupMethod · 0.45

Calls 2

__exit__Method · 0.95
removeMethod · 0.45

Tested by 1

cleanupMethod · 0.36