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:
|
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")
|
||||||
|
|
Loading…
Reference in New Issue