Commit da8e47da authored by Damien George's avatar Damien George

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

Signed-off-by: default avatarDamien George <damien@micropython.org>
parent d00523ba
...@@ -32,8 +32,10 @@ import sys ...@@ -32,8 +32,10 @@ import sys
class multitest: class multitest:
@staticmethod @staticmethod
def flush(): def flush():
if hasattr(sys.stdout, "flush"): try:
sys.stdout.flush() sys.stdout.flush()
except AttributeError:
pass
@staticmethod @staticmethod
def skip(): def skip():
print("SKIP") print("SKIP")
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment