summaryrefslogtreecommitdiff
path: root/src/testdir/test_python2.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-02-18 22:04:56 +0100
committerBram Moolenaar <Bram@vim.org>2019-02-18 22:04:56 +0100
commit14816ad6e58336773443f5ee2e4aa9e384af65d2 (patch)
treef53327ad0ffed33997cf4bbe9ce4725cb2221980 /src/testdir/test_python2.vim
parent0472b6d149445579e3a63519b15f099f9adda3f7 (diff)
downloadvim-git-14816ad6e58336773443f5ee2e4aa9e384af65d2.tar.gz
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.vim8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/testdir/test_python2.vim b/src/testdir/test_python2.vim
index d79400de7..43c89c972 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