]> granicus.if.org Git - vim/commitdiff
patch 8.2.2872: Python tests fail without the channel feature v8.2.2872
authorDominique Pelle <dominique.pelle@gmail.com>
Tue, 18 May 2021 22:16:14 +0000 (00:16 +0200)
committerBram Moolenaar <Bram@vim.org>
Tue, 18 May 2021 22:16:14 +0000 (00:16 +0200)
Problem:    Python tests fail without the channel feature.
Solution:   Add a feature check. (Dominique PellĂ©, closes #8226)

src/testdir/test_python2.vim
src/testdir/test_python3.vim
src/version.c

index cf35a50b32fa1079528095d3ac2e76d8b1319a0c..84c917316ddc4f212e1f63cf6d6513467e7bccea 100644 (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
index 58b6427f3ecf0e0254b37121dfdb5ba72713a623..1e9ef82b0750015fb3c6715a81c044f76d5c0e2c 100644 (file)
@@ -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
index 8d73f68c09973052cf30e7ba2084ddcb1bc48a82..af4046250c0b4921f3ef4e946792e39a481e3df6 100644 (file)
@@ -750,6 +750,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    2872,
 /**/
     2871,
 /**/