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