MCPcopy Index your code
hub / github.com/modelcontextprotocol/python-sdk / recording_terminate

Function recording_terminate

tests/transports/stdio/conftest.py:61–63  ·  view source on GitHub ↗
(process: anyio.abc.Process | FallbackProcess)

Source from the content-addressed store, hash-verified

59 terminated: list[anyio.abc.Process | FallbackProcess] = []
60
61 async def recording_terminate(process: anyio.abc.Process | FallbackProcess) -> None:
62 terminated.append(process)
63 await _terminate_process_tree(process)
64
65 monkeypatch.setattr(stdio, "_terminate_process_tree", recording_terminate)
66 return terminated

Callers

nothing calls this directly

Calls 1

_terminate_process_treeFunction · 0.90

Tested by

no test coverage detected