summaryrefslogtreecommitdiff
path: root/src/testdir/test_python3.vim
diff options
context:
space:
mode:
authorDominique Pelle <dominique.pelle@gmail.com>2021-05-19 00:16:14 +0200
committerBram Moolenaar <Bram@vim.org>2021-05-19 00:16:14 +0200
commit56c9fd01076bc62b55c8cb89d8a66f6136e52f3a (patch)
treece37ec81410eab0700a95a43810fd5c270cf4ad4 /src/testdir/test_python3.vim
parent4781d6fd8670af415c3b78f00d70036af85bd286 (diff)
downloadvim-git-56c9fd01076bc62b55c8cb89d8a66f6136e52f3a.tar.gz
patch 8.2.2872: Python tests fail without the channel featurev8.2.2872
Problem: Python tests fail without the channel feature. Solution: Add a feature check. (Dominique Pellé, closes #8226)
Diffstat (limited to 'src/testdir/test_python3.vim')
-rw-r--r--src/testdir/test_python3.vim8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/testdir/test_python3.vim b/src/testdir/test_python3.vim
index 58b6427f3..1e9ef82b0 100644
--- a/src/testdir/test_python3.vim
+++ b/src/testdir/test_python3.vim
@@ -1007,8 +1007,12 @@ func Test_python3_vim_bindeval()
call assert_equal(v:none, py3eval("vim.bindeval('v:none')"))
" channel/job
- call assert_equal(v:none, py3eval("vim.bindeval('test_null_channel()')"))
- call assert_equal(v:none, py3eval("vim.bindeval('test_null_job()')"))
+ if has('channel')
+ call assert_equal(v:none, py3eval("vim.bindeval('test_null_channel()')"))
+ endif
+ if has('job')
+ call assert_equal(v:none, py3eval("vim.bindeval('test_null_job()')"))
+ endif
endfunc
" threading