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')")) call assert_equal(v:none, pyeval("vim.bindeval('v:none')"))
" channel/job " channel/job
call assert_equal(v:none, pyeval("vim.bindeval('test_null_channel()')")) if has('channel')
call assert_equal(v:none, pyeval("vim.bindeval('test_null_job()')")) 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 endfunc
" threading " threading

View File

@@ -1007,8 +1007,12 @@ func Test_python3_vim_bindeval()
call assert_equal(v:none, py3eval("vim.bindeval('v:none')")) call assert_equal(v:none, py3eval("vim.bindeval('v:none')"))
" channel/job " channel/job
call assert_equal(v:none, py3eval("vim.bindeval('test_null_channel()')")) if has('channel')
call assert_equal(v:none, py3eval("vim.bindeval('test_null_job()')")) 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 endfunc
" threading " threading

View File

@@ -750,6 +750,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
2872,
/**/ /**/
2871, 2871,
/**/ /**/