summaryrefslogtreecommitdiff
path: root/src/testdir/check.vim
diff options
context:
space:
mode:
Diffstat (limited to 'src/testdir/check.vim')
-rw-r--r--src/testdir/check.vim8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/testdir/check.vim b/src/testdir/check.vim
index efb273b00..2a4599763 100644
--- a/src/testdir/check.vim
+++ b/src/testdir/check.vim
@@ -52,6 +52,14 @@ func CheckExecutable(name)
endif
endfunc
+" Command to check for the presence of python. Argument should have been
+" obtained with PythonProg()
+func CheckPython(name)
+ if a:name == ''
+ throw 'Skipped: python command not available'
+ endif
+endfunc
+
" Command to check for running on MS-Windows
command CheckMSWindows call CheckMSWindows()
func CheckMSWindows()