MCPcopy Index your code
hub / github.com/python/cpython / stop

Method stop

Lib/test/libregrtest/run_workers.py:173–176  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

171 print_warning(f"Failed to kill {what}: {exc!r}")
172
173 def stop(self) -> None:
174 # Method called from a different thread to stop this thread
175 self._stopped = True
176 self._kill()
177
178 def _run_process(self, runtests: WorkerRunTests, output_fd: int,
179 tmp_dir: StrPath | None = None) -> int | None:

Callers 4

stop_workersMethod · 0.45
runMethod · 0.45
runMethod · 0.45
addFailureMethod · 0.45

Calls 1

_killMethod · 0.95

Tested by 1

addFailureMethod · 0.36