MCPcopy Index your code
hub / github.com/RustPython/RustPython / kill_proc_timer_thread

Method kill_proc_timer_thread

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

Source from the content-addressed store, hash-verified

1568 results = []
1569
1570 def kill_proc_timer_thread():
1571 results.append(('thread-start-poll-result', proc.poll()))
1572 # terminate it from the thread and wait for the result.
1573 proc.kill()
1574 proc.wait()
1575 results.append(('thread-after-kill-and-wait', proc.returncode))
1576 # this wait should be a no-op given the above.
1577 proc.wait()
1578 results.append(('thread-after-second-wait', proc.returncode))
1579
1580 # This is a timing sensitive test, the failure mode is
1581 # 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