mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
patch 8.1.0950: using :python sets 'pyxversion' even when not executed
Problem: Using :python sets 'pyxversion' even when not executed. Solution: Check the "skip" flag. (Shane Harper, closes #3995)
This commit is contained in:
@@ -63,3 +63,11 @@ func Test_vim_function()
|
||||
py del f
|
||||
delfunc s:foo
|
||||
endfunc
|
||||
|
||||
func Test_skipped_python_command_does_not_affect_pyxversion()
|
||||
set pyxversion=0
|
||||
if 0
|
||||
python import vim
|
||||
endif
|
||||
call assert_equal(0, &pyxversion) " This assertion would have failed with Vim 8.0.0251. (pyxversion was introduced in 8.0.0251.)
|
||||
endfunc
|
||||
|
Reference in New Issue
Block a user