8000 Count the test run in our stub test so that the suite succeeds · python/cpython@eab4b21 · GitHub
[go: up one dir, main page]

Skip to content

Commit eab4b21

Browse files
committed
Count the test run in our stub test so that the suite succeeds
1 parent c063981 commit eab4b21

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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)
0