Skip to content

Commit

Permalink
Count the test run in our stub test so that the suite succeeds
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanor committed Feb 19, 2023
1 parent 69b91f4 commit d8b54a3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Lib/test/test_unittest/test_result.py
Original file line number Diff line number Diff line change
Expand Up @@ -465,6 +465,7 @@ def testFailFastSetByRunner(self):
stream = BufferedWriter()
runner = unittest.TextTestRunner(stream=stream, failfast=True)
def test(result):
result.testsRun += 1
self.assertTrue(result.failfast)
result = runner.run(test)
stream.flush()
Expand Down

0 comments on commit d8b54a3

Please sign in to comment.