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

Method test_kill

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

Source from the content-addressed store, hash-verified

2618 self.assertNotEqual(p.wait(), 0)
2619
2620 def test_kill(self):
2621 p = self._kill_process('kill')
2622 _, stderr = p.communicate()
2623 self.assertEqual(stderr, b'')
2624 self.assertEqual(p.wait(), -signal.SIGKILL)
2625
2626 def test_terminate(self):
2627 p = self._kill_process('terminate')

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