kopia lustrzana https://github.com/micropython/micropython-lib
unittest: Support recursive TestSuite's.
Signed-off-by: Paul Sokolovsky <pfalcon@users.sourceforge.net>pull/488/head
rodzic
e582666f5d
commit
8e82f3d80b
|
@ -276,6 +276,10 @@ def capture_exc(e):
|
|||
|
||||
# TODO: Uncompliant
|
||||
def run_suite(c, test_result):
|
||||
if isinstance(c, TestSuite):
|
||||
c.run(test_result)
|
||||
return
|
||||
|
||||
if isinstance(c, type):
|
||||
o = c()
|
||||
else:
|
||||
|
|
Ładowanie…
Reference in New Issue