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

Method test_send_signal

Lib/test/test_subprocess.py:2614–2618  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2612 p.communicate()
2613
2614 def test_send_signal(self):
2615 p = self._kill_process('send_signal', signal.SIGINT)
2616 _, stderr = p.communicate()
2617 self.assertIn(b'KeyboardInterrupt', stderr)
2618 self.assertNotEqual(p.wait(), 0)
2619
2620 def test_kill(self):
2621 p = self._kill_process('kill')

Callers

nothing calls this directly

Calls 5

_kill_processMethod · 0.95
assertInMethod · 0.80
assertNotEqualMethod · 0.80
communicateMethod · 0.45
waitMethod · 0.45

Tested by

no test coverage detected