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

Method test_waitstatus_to_exitcode_kill

Lib/test/test_os.py:3577–3584  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

3575 # Skip the test on Windows
3576 @unittest.skipUnless(hasattr(signal, 'SIGKILL'), 'need signal.SIGKILL')
3577 def test_waitstatus_to_exitcode_kill(self):
3578 code = f'import time; time.sleep({support.LONG_TIMEOUT})'
3579 signum = signal.SIGKILL
3580
3581 def kill_process(pid):
3582 os.kill(pid, signum)
3583
3584 self.check_waitpid(code, exitcode=-signum, callback=kill_process)
3585
3586
3587@support.requires_subprocess()

Callers

nothing calls this directly

Calls 1

check_waitpidMethod · 0.95

Tested by

no test coverage detected