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:
parent
d00523ba0c
commit
da8e47da21
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user