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

Method __init__

Lib/test/libregrtest/run_workers.py:109–121  ·  view source on GitHub ↗
(self, worker_id: int, runner: "RunWorkers")

Source from the content-addressed store, hash-verified

107
108class WorkerThread(threading.Thread):
109 def __init__(self, worker_id: int, runner: "RunWorkers") -> None:
110 super().__init__()
111 self.worker_id = worker_id
112 self.runtests = runner.runtests
113 self.pending = runner.pending
114 self.output = runner.output
115 self.timeout = runner.worker_timeout
116 self.log = runner.log
117 self.test_name = _NOT_RUNNING
118 self.start_time = time.monotonic()
119 self._popen: subprocess.Popen[str] | None = None
120 self._killed = False
121 self._stopped = False
122
123 def __repr__(self) -> str:
124 info = [f'WorkerThread #{self.worker_id}']

Callers

nothing calls this directly

Calls 2

superClass · 0.85
__init__Method · 0.45

Tested by

no test coverage detected