From ab8d7e86590f754a97fa20e1198d6a93d04cb0c5 Mon Sep 17 00:00:00 2001 From: Dave Halter Date: Thu, 28 Mar 2019 08:59:59 +0100 Subject: [PATCH] Running a test should not fail if nothing is selected --- test/run.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/run.py b/test/run.py index 12252659..f398ab0a 100755 --- a/test/run.py +++ b/test/run.py @@ -421,7 +421,9 @@ if __name__ == '__main__': cases += collect_dir_tests(completion_test_dir, test_files, True) def file_change(current, tests, fails): - if current is not None: + if current is None: + current = '' + else: current = os.path.basename(current) print('{:25} {} tests and {} fails.'.format(current, tests, fails))