MCPcopy
hub / github.com/python/mypy / wait_background_cmd

Function wait_background_cmd

runtests.py:139–148  ·  view source on GitHub ↗
(name: str, proc: Popen)

Source from the content-addressed store, hash-verified

137
138
139def wait_background_cmd(name: str, proc: Popen) -> int:
140 output = proc.communicate()[0]
141 status = proc.returncode
142 print(f"run {name}: {cmds[name]}")
143 if status:
144 print(output.decode().rstrip())
145 print("\nFAILED:", name)
146 if name in FAST_FAIL:
147 exit(status)
148 return status
149
150
151def main() -> None:

Callers 1

mainFunction · 0.85

Calls 4

printFunction · 0.85
exitFunction · 0.85
rstripMethod · 0.80
decodeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…