0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

patch 8.2.2872: Python tests fail without the channel feature

Problem:    Python tests fail without the channel feature.
Solution:   Add a feature check. (Dominique Pellé, closes #8226)
This commit is contained in:
Dominique Pelle
2021-05-19 00:16:14 +02:00
committed by Bram Moolenaar
parent 4781d6fd86
commit 56c9fd0107
3 changed files with 14 additions and 4 deletions

View File

@@ -814,8 +814,12 @@ func Test_python_vim_bindeval()
call assert_equal(v:none, pyeval("vim.bindeval('v:none')"))
" channel/job
call assert_equal(v:none, pyeval("vim.bindeval('test_null_channel()')"))
call assert_equal(v:none, pyeval("vim.bindeval('test_null_job()')"))
if has('channel')
call assert_equal(v:none, pyeval("vim.bindeval('test_null_channel()')"))
endif
if has('job')
call assert_equal(v:none, pyeval("vim.bindeval('test_null_job()')"))
endif
endfunc
" threading