Beispiel #1
0
 def test_send_signal_success(self):
     proc = make_mock_process(12345, [])
     self.assertTrue(pidutil.send_signal(proc, signal.SIGKILL))
Beispiel #2
0
 def test_send_signal_timeout(self):
     proc = make_mock_process(12345, [], wait_throw=True)
     self.assertFalse(pidutil.send_signal(proc, signal.SIGKILL))
 def test_send_signal_no_such_process(self):
     # type: () -> None
     proc = make_mock_process(12345, [], signal_throw=True)
     self.assertFalse(pidutil.send_signal(proc, signal.SIGKILL))