Guest User

Untitled

a guest
Nov 17th, 2018
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. class FastFailingTest(TestCase):
  2. """
  3. A TestCase that stops execution of the suite if it fails.
  4. """
  5.  
  6. def run(self, result=None):
  7. if result is None:
  8. result = self.defaultTestResult()
  9. failfast = result.failfast
  10. result.failfast = True
  11. super(A_TestRunnerTest, self).run(result)
  12. result.failfast = failfast
Add Comment
Please, Sign In to add comment