Mercurial > vim
comparison src/testdir/test_python2.vim @ 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 | f9526a3c9bbf |
children | 04205b7d67d5 |
comparison
equal
deleted
inserted
replaced
24666:f6fb4d9f7c05 | 24667:8feb0450b690 |
---|---|
812 call assert_equal(0, pyeval("vim.bindeval('v:false')")) | 812 call assert_equal(0, pyeval("vim.bindeval('v:false')")) |
813 call assert_equal(v:none, pyeval("vim.bindeval('v:null')")) | 813 call assert_equal(v:none, pyeval("vim.bindeval('v:null')")) |
814 call assert_equal(v:none, pyeval("vim.bindeval('v:none')")) | 814 call assert_equal(v:none, pyeval("vim.bindeval('v:none')")) |
815 | 815 |
816 " channel/job | 816 " channel/job |
817 call assert_equal(v:none, pyeval("vim.bindeval('test_null_channel()')")) | 817 if has('channel') |
818 call assert_equal(v:none, pyeval("vim.bindeval('test_null_job()')")) | 818 call assert_equal(v:none, pyeval("vim.bindeval('test_null_channel()')")) |
819 endif | |
820 if has('job') | |
821 call assert_equal(v:none, pyeval("vim.bindeval('test_null_job()')")) | |
822 endif | |
819 endfunc | 823 endfunc |
820 | 824 |
821 " threading | 825 " threading |
822 " Running pydo command (Test_pydo) before this test, stops the python thread | 826 " Running pydo command (Test_pydo) before this test, stops the python thread |
823 " from running. So this test should be run before the pydo test | 827 " from running. So this test should be run before the pydo test |