tests/run-multitests.py: Allow to work without sys.stdout on target.

Signed-off-by: Damien George <damien@micropython.org>
This commit is contained in:
Damien George 2021-04-26 00:37:11 +10:00
parent d00523ba0c
commit da8e47da21

View File

@ -32,8 +32,10 @@ import sys
class multitest:
@staticmethod
def flush():
if hasattr(sys.stdout, "flush"):
try:
sys.stdout.flush()
except AttributeError:
pass
@staticmethod
def skip():
print("SKIP")