MCPcopy Index your code
hub / github.com/python-cmd2/cmd2 / test_proc_reader_send_sigint

Function test_proc_reader_send_sigint

tests/test_utils.py:203–213  ·  view source on GitHub ↗
(pr_none)

Source from the content-addressed store, hash-verified

201
202
203def test_proc_reader_send_sigint(pr_none) -> None:
204 assert pr_none._proc.poll() is None
205 pr_none.send_sigint()
206 pr_none.wait()
207 ret_code = pr_none._proc.poll()
208
209 # Make sure a SIGINT killed the process
210 if sys.platform.startswith("win"):
211 assert ret_code is not None
212 else:
213 assert ret_code == -signal.SIGINT
214
215
216def test_proc_reader_terminate(pr_none) -> None:

Callers

nothing calls this directly

Calls 2

send_sigintMethod · 0.80
waitMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…