mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-06 22:14:27 +08:00
Running a test should not fail if nothing is selected
This commit is contained in:
@@ -421,7 +421,9 @@ if __name__ == '__main__':
|
|||||||
cases += collect_dir_tests(completion_test_dir, test_files, True)
|
cases += collect_dir_tests(completion_test_dir, test_files, True)
|
||||||
|
|
||||||
def file_change(current, tests, fails):
|
def file_change(current, tests, fails):
|
||||||
if current is not None:
|
if current is None:
|
||||||
|
current = ''
|
||||||
|
else:
|
||||||
current = os.path.basename(current)
|
current = os.path.basename(current)
|
||||||
print('{:25} {} tests and {} fails.'.format(current, tests, fails))
|
print('{:25} {} tests and {} fails.'.format(current, tests, fails))
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user