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

Method kill_proc_timer_thread

Lib/test/test_subprocess.py:1572–1580  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1570 results = []
1571
1572 def kill_proc_timer_thread():
1573 results.append(('thread-start-poll-result', proc.poll()))
1574 # terminate it from the thread and wait for the result.
1575 proc.kill()
1576 proc.wait()
1577 results.append(('thread-after-kill-and-wait', proc.returncode))
1578 # this wait should be a no-op given the above.
1579 proc.wait()
1580 results.append(('thread-after-second-wait', proc.returncode))
1581
1582 # This is a timing sensitive test, the failure mode is
1583 # triggered when both the main thread and this thread are in

Callers

nothing calls this directly

Calls 4

appendMethod · 0.45
pollMethod · 0.45
killMethod · 0.45
waitMethod · 0.45

Tested by

no test coverage detected