def kill(self, pid, signalID):
        """
        Override C{os.kill}: save the action and raise C{self.raiseKill} if
        specified.
        """
        self.actions.append(('kill', pid, signalID))
        if self.raiseKill is not None:
            raise self.raiseKill

        Override C{os.kill}: save the action and raise C{self.raiseKill} if
        specified.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/test/test_process.py