Skip to content

Commit 8e82f3d

Browse files
pfalconpi-anl
authored andcommitted
unittest: Support recursive TestSuite's.
Signed-off-by: Paul Sokolovsky <[email protected]>
1 parent e582666 commit 8e82f3d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

python-stdlib/unittest/unittest.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -276,6 +276,10 @@ def capture_exc(e):
276276

277277
# TODO: Uncompliant
278278
def run_suite(c, test_result):
279+
if isinstance(c, TestSuite):
280+
c.run(test_result)
281+
return
282+
279283
if isinstance(c, type):
280284
o = c()
281285
else:

0 commit comments

Comments
 (0)