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

Method test_terminate

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

Source from the content-addressed store, hash-verified

2624 self.assertEqual(p.wait(), -signal.SIGKILL)
2625
2626 def test_terminate(self):
2627 p = self._kill_process('terminate')
2628 _, stderr = p.communicate()
2629 self.assertEqual(stderr, b'')
2630 self.assertEqual(p.wait(), -signal.SIGTERM)
2631
2632 def test_send_signal_dead(self):
2633 # Sending a signal to a dead process

Callers

nothing calls this directly

Calls 4

_kill_processMethod · 0.95
communicateMethod · 0.45
assertEqualMethod · 0.45
waitMethod · 0.45

Tested by

no test coverage detected