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

Method test_kill

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

Source from the content-addressed store, hash-verified

2617 self.assertNotEqual(p.wait(), 0)
2618
2619 def test_kill(self):
2620 p = self._kill_process('kill')
2621 _, stderr = p.communicate()
2622 self.assertEqual(stderr, b'')
2623 self.assertEqual(p.wait(), -signal.SIGKILL)
2624
2625 def test_terminate(self):
2626 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