Mercurial > vim
comparison src/testdir/test_vim9_func.vim @ 22437:7bd80999ea21 v8.2.1767
patch 8.2.1767: Vim9: test fails with python support
Commit: https://github.com/vim/vim/commit/727345ebea07284ada118590d805329e6dbee014
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Sep 27 23:33:59 2020 +0200
patch 8.2.1767: Vim9: test fails with python support
Problem: Vim9: test fails with python support.
Solution: Use "let" in legacy function.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 27 Sep 2020 23:45:03 +0200 |
parents | 166a0f17b05e |
children | 4097509ecc1e |
comparison
equal
deleted
inserted
replaced
22436:d47843ead318 | 22437:7bd80999ea21 |
---|---|
829 | 829 |
830 " Test that inside :function a Python function can be defined, :def is not | 830 " Test that inside :function a Python function can be defined, :def is not |
831 " recognized. | 831 " recognized. |
832 func Test_function_python() | 832 func Test_function_python() |
833 CheckFeature python3 | 833 CheckFeature python3 |
834 var py = 'python3' | 834 let py = 'python3' |
835 execute py "<< EOF" | 835 execute py "<< EOF" |
836 def do_something(): | 836 def do_something(): |
837 return 1 | 837 return 1 |
838 EOF | 838 EOF |
839 endfunc | 839 endfunc |