Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class FastFailingTest(TestCase):
- """
- A TestCase that stops execution of the suite if it fails.
- """
- def run(self, result=None):
- if result is None:
- result = self.defaultTestResult()
- failfast = result.failfast
- result.failfast = True
- super(A_TestRunnerTest, self).run(result)
- result.failfast = failfast
Add Comment
Please, Sign In to add comment