]> granicus.if.org Git - vim/commitdiff
patch 8.2.1767: Vim9: test fails with python support v8.2.1767
authorBram Moolenaar <Bram@vim.org>
Sun, 27 Sep 2020 21:33:59 +0000 (23:33 +0200)
committerBram Moolenaar <Bram@vim.org>
Sun, 27 Sep 2020 21:33:59 +0000 (23:33 +0200)
Problem:    Vim9: test fails with python support.
Solution:   Use "let" in legacy function.

src/testdir/test_vim9_func.vim
src/version.c

index 7bc46d85ba56bcc61316b73e4e4f6076fe11a2a5..c9f902773b85d18bf44629ed88a04cfc5ee6248d 100644 (file)
@@ -831,7 +831,7 @@ enddef
 " recognized.
 func Test_function_python()
   CheckFeature python3
-  var py = 'python3'
+  let py = 'python3'
   execute py "<< EOF"
 def do_something():
   return 1
index 7a2b4f81f88c90bd3511abad520aaa371a823f8a..8cfa149cc0f5f4e12250b0227bb1971c0741172c 100644 (file)
@@ -750,6 +750,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1767,
 /**/
     1766,
 /**/