summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rwxr-xr-xtests/run-multitests.py4
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")