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

Method stop

Lib/unittest/mock.py:1665–1673  ·  view source on GitHub ↗

Stop an active patch.

(self)

Source from the content-addressed store, hash-verified

1663
1664
1665 def stop(self):
1666 """Stop an active patch."""
1667 try:
1668 self._active_patches.remove(self)
1669 except ValueError:
1670 # If the patch hasn't been started this will fail
1671 return None
1672
1673 return self.__exit__(None, None, None)
1674
1675
1676

Callers 2

__call__Method · 0.45
_patch_stopallFunction · 0.45

Calls 2

__exit__Method · 0.95
removeMethod · 0.45

Tested by

no test coverage detected