Mercurial > vim
changeset 24667:8feb0450b690 v8.2.2872
patch 8.2.2872: Python tests fail without the channel feature
Commit: https://github.com/vim/vim/commit/56c9fd01076bc62b55c8cb89d8a66f6136e52f3a
Author: Dominique Pelle <dominique.pelle@gmail.com>
Date: Wed May 19 00:16:14 2021 +0200
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 https://github.com/vim/vim/issues/8226)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 19 May 2021 00:30:03 +0200 |
parents | f6fb4d9f7c05 |
children | 6f26d4555812 |
files | src/testdir/test_python2.vim src/testdir/test_python3.vim src/version.c |
diffstat | 3 files changed, 14 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/src/testdir/test_python2.vim +++ b/src/testdir/test_python2.vim @@ -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
--- 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