diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-02-18 22:04:56 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-02-18 22:04:56 +0100 |
commit | 14816ad6e58336773443f5ee2e4aa9e384af65d2 (patch) | |
tree | f53327ad0ffed33997cf4bbe9ce4725cb2221980 /src/testdir/test_python2.vim | |
parent | 0472b6d149445579e3a63519b15f099f9adda3f7 (diff) |
patch 8.1.0950: using :python sets 'pyxversion' even when not executedv8.1.0950
Problem: Using :python sets 'pyxversion' even when not executed.
Solution: Check the "skip" flag. (Shane Harper, closes #3995)
Diffstat (limited to 'src/testdir/test_python2.vim')
-rw-r--r-- | src/testdir/test_python2.vim | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/testdir/test_python2.vim b/src/testdir/test_python2.vim index d79400de71..43c89c972a 100644 --- a/src/testdir/test_python2.vim +++ b/src/testdir/test_python2.vim @@ -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 |