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

Method test_waitstatus_to_exitcode_kill

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

Source from the content-addressed store, hash-verified

3260 # Skip the test on Windows
3261 @unittest.skipUnless(hasattr(signal, 'SIGKILL'), 'need signal.SIGKILL')
3262 def test_waitstatus_to_exitcode_kill(self):
3263 code = f'import time; time.sleep({support.LONG_TIMEOUT})'
3264 signum = signal.SIGKILL
3265
3266 def kill_process(pid):
3267 os.kill(pid, signum)
3268
3269 self.check_waitpid(code, exitcode=-signum, callback=kill_process)
3270
3271
3272@support.requires_subprocess()

Callers

nothing calls this directly

Calls 1

check_waitpidMethod · 0.95

Tested by

no test coverage detected