mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -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:
committed by
Bram Moolenaar
parent
4781d6fd86
commit
56c9fd0107
@@ -814,8 +814,12 @@ func Test_python_vim_bindeval()
|
||||
call assert_equal(v:none, pyeval("vim.bindeval('v:none')"))
|
||||
|
||||
" channel/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
|
||||
|
@@ -1007,8 +1007,12 @@ func Test_python3_vim_bindeval()
|
||||
call assert_equal(v:none, py3eval("vim.bindeval('v:none')"))
|
||||
|
||||
" channel/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
|
||||
|
@@ -750,6 +750,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
2872,
|
||||
/**/
|
||||
2871,
|
||||
/**/
|
||||
|
Reference in New Issue
Block a user