diff options
-rw-r--r-- | src/nvim/testdir/test_python2.vim | 8 | ||||
-rw-r--r-- | src/nvim/testdir/test_python3.vim | 8 |
2 files changed, 16 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_python2.vim b/src/nvim/testdir/test_python2.vim index 7821078045..647290e6b5 100644 --- a/src/nvim/testdir/test_python2.vim +++ b/src/nvim/testdir/test_python2.vim @@ -67,6 +67,14 @@ func Test_vim_function() 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 + func _SetUpHiddenBuffer() py import vim new diff --git a/src/nvim/testdir/test_python3.vim b/src/nvim/testdir/test_python3.vim index f1e8b25454..26aaab31ed 100644 --- a/src/nvim/testdir/test_python3.vim +++ b/src/nvim/testdir/test_python3.vim @@ -67,6 +67,14 @@ func Test_vim_function() delfunc s:foo endfunc +func Test_skipped_python3_command_does_not_affect_pyxversion() + set pyxversion=0 + if 0 + python3 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 + func _SetUpHiddenBuffer() py3 import vim new |