From d83bcf707109faee3bf6c991f875c3295be34df3 Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Tue, 10 Oct 2017 19:58:37 +0500 Subject: Cycles tests: Don't proint braces for empty status --- tests/python/cycles_render_tests.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tests/python') diff --git a/tests/python/cycles_render_tests.py b/tests/python/cycles_render_tests.py index 2122150467c..731996df8ef 100755 --- a/tests/python/cycles_render_tests.py +++ b/tests/python/cycles_render_tests.py @@ -43,7 +43,8 @@ def print_message(message, type=None, status=''): status_text = " FAILED " else: status_text = status - print("[{}]" . format(status_text), end="") + if status_text: + print("[{}]" . format(status_text), end="") print(COLORS.ENDC, end="") print(" {}" . format(message)) sys.stdout.flush() -- cgit v1.2.3