summaryrefslogtreecommitdiffstats
path: root/src/testdir/test_vim9_builtin.vim
diff options
context:
space:
mode:
Diffstat (limited to 'src/testdir/test_vim9_builtin.vim')
-rw-r--r--src/testdir/test_vim9_builtin.vim6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/testdir/test_vim9_builtin.vim b/src/testdir/test_vim9_builtin.vim
index 5a5b512d8c..38bd8271c8 100644
--- a/src/testdir/test_vim9_builtin.vim
+++ b/src/testdir/test_vim9_builtin.vim
@@ -1344,8 +1344,10 @@ def Test_prevnonblank()
enddef
def Test_prompt_getprompt()
- CheckDefFailure(['prompt_getprompt([])'], 'E1013: Argument 1: type mismatch, expected string but got list<unknown>')
- assert_equal('', prompt_getprompt('NonExistingBuf'))
+ if has('channel')
+ CheckDefFailure(['prompt_getprompt([])'], 'E1013: Argument 1: type mismatch, expected string but got list<unknown>')
+ assert_equal('', prompt_getprompt('NonExistingBuf'))
+ endif
enddef
def Test_rand()