Skip to content

Commit fb67714

Browse files
committed
Count the test run in our stub test so that the suite succeeds
1 parent 5e1a88d commit fb67714

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Lib/test/test_unittest/test_result.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -465,6 +465,7 @@ def testFailFastSetByRunner(self):
465465
stream = BufferedWriter()
466466
runner = unittest.TextTestRunner(stream=stream, failfast=True)
467467
def test(result):
468+
result.testsRun += 1
468469
self.assertTrue(result.failfast)
469470
result = runner.run(test)
470471
stream.flush()

0 commit comments

Comments
 (0)