(self)
| 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() |
nothing calls this directly
no test coverage detected