'Fake C{os._exit}. Save the action, set the C{self.exited} flag, and
raise C{SystemError}.'

def _exit(self, code):

    self.actions.append(('exit', code))
    self.exited = True
    raise SystemError()
