diff src/testdir/test_vim9_func.vim @ 27738:d754ac2f5ac5 v8.2.4395

patch 8.2.4395: some code lines not covered by tests Commit: https://github.com/vim/vim/commit/8b716f5f2204f938769de283d43bcb2f77d403e7 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Feb 15 21:17:56 2022 +0000 patch 8.2.4395: some code lines not covered by tests Problem: Some code lines not covered by tests. Solution: Add a few more test cases. Fix getting more than one error for invalid assignment.
author Bram Moolenaar <Bram@vim.org>
date Tue, 15 Feb 2022 22:30:04 +0100
parents 5c4ab8d4472c
children 2bd27d5ffbef
line wrap: on
line diff
--- a/src/testdir/test_vim9_func.vim
+++ b/src/testdir/test_vim9_func.vim
@@ -3762,7 +3762,15 @@ def Test_go_beyond_end_of_cmd()
   v9.CheckScriptFailure(lines, 'E476:')
 enddef
 
+" The following messes up syntax highlight, keep near the end.
 if has('python3')
+  def Test_python3_command()
+    py3 import vim
+    py3 vim.command("let g:done = 'yes'")
+    assert_equal('yes', g:done)
+    unlet g:done
+  enddef
+
   def Test_python3_heredoc()
     py3 << trim EOF
       import vim
@@ -3778,7 +3786,6 @@ if has('python3')
   enddef
 endif
 
-" This messes up syntax highlight, keep near the end.
 if has('lua')
   def Test_lua_heredoc()
     g:d = {}