diff options
-rw-r--r-- | uitest/test_main.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/uitest/test_main.py b/uitest/test_main.py index bbfb8ad57072..851a44f8e929 100644 --- a/uitest/test_main.py +++ b/uitest/test_main.py @@ -45,6 +45,9 @@ def find_test_files(dir_path): if not os.path.isfile(file_path): continue + if os.path.splitext(file_path)[1] == ".swp": + continue # ignore VIM swap files + # fail on any non .py files if not os.path.splitext(file_path)[1] == ".py": raise Exception("file with an extension which is not .py: " + file_path) |