def doCleanups(self):
result = self._resultForDoCleanups<EOL>ok = True<EOL>while self._cleanups:<EOL><INDENT>function, args, kwargs = self._cleanups.pop(-<NUM_LIT:1>)<EOL>try:<EOL><INDENT>function(*args, **kwargs)<EOL><DEDENT>except Exception:<EOL><INDENT>ok = False<EOL>result.addError(self, sys.exc_info())<EOL><DEDENT><DEDENT>return ok<EOL>
Execute all cleanup functions. Normally called for you after
        tearDown.