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

Function _patch_stopall

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

Stop all active patches. LIFO to unroll nested patches.

()

Source from the content-addressed store, hash-verified

1940
1941
1942def _patch_stopall():
1943 """Stop all active patches. LIFO to unroll nested patches."""
1944 for patch in reversed(_patch._active_patches):
1945 patch.stop()
1946
1947
1948patch.object = _patch_object

Callers

nothing calls this directly

Calls 1

stopMethod · 0.45

Tested by

no test coverage detected