def execvpe(self, command, args, env):
        """
        Fake C{os.execvpe}. Save the action, and raise an error if
        C{self.raiseExec} is set.
        """
        self.actions.append('exec')
        if self.raiseExec:
            raise RuntimeError("Bar")

        Fake C{os.execvpe}. Save the action, and raise an error if
        C{self.raiseExec} is set.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/test/test_process.py