def run(self, result):
<EOL>log.debug("<STR_LIT>",<EOL>id(self), self, self._tests)<EOL>if self.resultProxy:<EOL><INDENT>result, orig = self.resultProxy(result, self), result<EOL><DEDENT>else:<EOL><INDENT>result, orig = result, result<EOL><DEDENT>try:<EOL><INDENT>self.setUp()<EOL><DEDENT>except KeyboardInterrupt:<EOL><INDENT>raise<EOL><DEDENT>except:<EOL><INDENT>self.error_context = '<STR_LIT>'<EOL>result.addError(self, self._exc_info())<EOL>return<EOL><DEDENT>try:<EOL><INDENT>for test in self._tests:<EOL><INDENT>if (isinstance(test,nose.case.Test)<EOL>and self.arg is not None):<EOL><INDENT>test.test.arg = self.arg<EOL><DEDENT>else:<EOL><INDENT>test.arg = self.arg<EOL><DEDENT>test.testQueue = self.testQueue<EOL>test.tasks = self.tasks<EOL>if result.shouldStop:<EOL><INDENT>log.debug("<STR_LIT>")<EOL>break<EOL><DEDENT>try:<EOL><INDENT>test(orig)<EOL><DEDENT>except KeyboardInterrupt as e:<EOL><INDENT>timeout = isinstance(e, TimedOutException)<EOL>if timeout:<EOL><INDENT>msg = '<STR_LIT>'<EOL><DEDENT>else:<EOL><INDENT>msg = '<STR_LIT>'<EOL><DEDENT>log.debug(msg, test, self)<EOL>err = (TimedOutException,TimedOutException(str(test)),<EOL>sys.exc_info()[<NUM_LIT:2>])<EOL>test.config.plugins.addError(test,err)<EOL>orig.addError(test,err)<EOL>if not timeout:<EOL><INDENT>raise<EOL><DEDENT><DEDENT><DEDENT><DEDENT>finally:<EOL><INDENT>self.has_run = True<EOL>try:<EOL><INDENT>self.tearDown()<EOL><DEDENT>except KeyboardInterrupt:<EOL><INDENT>raise<EOL><DEDENT>except:<EOL><INDENT>self.error_context = '<STR_LIT>'<EOL>result.addError(self, self._exc_info())<EOL><DEDENT><DEDENT>
Run tests in suite inside of suite fixtures.