diff options
author | Damien George <damien@micropython.org> | 2021-04-26 00:37:11 +1000 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2021-06-06 21:58:07 +1000 |
commit | da8e47da21caba25994b6160ef8a2095ca1871ac (patch) | |
tree | 6e1eb1922fe8d4ca4910ff919772fa74cc5da376 | |
parent | d00523ba0c04348d6b733c80a5d8a92468cde536 (diff) |
tests/run-multitests.py: Allow to work without sys.stdout on target.
Signed-off-by: Damien George <damien@micropython.org>
-rwxr-xr-x | tests/run-multitests.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/run-multitests.py b/tests/run-multitests.py index 66ca79967..b4afc1e52 100755 --- a/tests/run-multitests.py +++ b/tests/run-multitests.py @@ -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") |