From da8e47da21caba25994b6160ef8a2095ca1871ac Mon Sep 17 00:00:00 2001 From: Damien George Date: Mon, 26 Apr 2021 00:37:11 +1000 Subject: [PATCH] tests/run-multitests.py: Allow to work without sys.stdout on target. Signed-off-by: Damien George --- tests/run-multitests.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/run-multitests.py b/tests/run-multitests.py index 66ca799675..b4afc1e526 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")