We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 04dce89 commit 2c0b508Copy full SHA for 2c0b508
python-stdlib/unittest/unittest.py
@@ -195,12 +195,16 @@ def __init__(self):
195
def addTest(self, cls):
196
self._tests.append(cls)
197
198
+ def run(self, result):
199
+ for c in self._tests:
200
+ result.exceptions.extend(run_suite(c, result))
201
+ return result
202
+
203
204
class TestRunner:
205
def run(self, suite):
206
res = TestResult()
- for c in suite._tests:
- res.exceptions.extend(run_suite(c, res))
207
+ suite.run(res)
208
209
print("Ran %d tests\n" % res.testsRun)
210
if res.failuresNum > 0 or res.errorsNum > 0:
0 commit comments