From 5bdc0386c4920c2057418dcdcbc44611bcd7a4ea Mon Sep 17 00:00:00 2001 From: Ultrabug Date: Wed, 27 Nov 2019 17:53:50 +0100 Subject: [PATCH] test.py: comparison to False should be 'if cond is False:' --- test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test.py b/test.py index cfc5843188..c49621d58c 100755 --- a/test.py +++ b/test.py @@ -193,7 +193,7 @@ def print_progress(test, success, cookie, verbose): last_len, n, n_total = cookie msg = "[{}/{}] {} {} {}".format(n, n_total, status_to_string(success), test.path, ' '.join(test.args)) - if verbose == False and sys.stdout.isatty(): + if verbose is False and sys.stdout.isatty(): print('\r' + ' ' * last_len, end='') last_len = len(msg) print('\r' + msg, end='')