1
0
forked from VimPlug/jedi

Running a test should not fail if nothing is selected

This commit is contained in:
Dave Halter
2019-03-28 08:59:59 +01:00
parent 7cd79c440c
commit ab8d7e8659

View File

@@ -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))