aboutsummaryrefslogtreecommitdiff
path: root/test/functional/provider/python3_spec.lua
diff options
context:
space:
mode:
authorBjörn Linse <bjorn.linse@gmail.com>2019-08-14 22:36:43 +0200
committerJustin M. Keyes <justinkz@gmail.com>2019-08-14 22:36:43 +0200
commit48b43352b052392418888c5a10c7802e7388a24a (patch)
tree2948a374e9ae7a7c58847707cacd9c9723906790 /test/functional/provider/python3_spec.lua
parentebcb9adcc4d06fc0741155989082945ef6da154c (diff)
downloadrneovim-48b43352b052392418888c5a10c7802e7388a24a.tar.gz
rneovim-48b43352b052392418888c5a10c7802e7388a24a.tar.bz2
rneovim-48b43352b052392418888c5a10c7802e7388a24a.zip
pyxversion: fix logic error #10759
Do not incorrectly prefer python2 if python3 is working. fixes #10758
Diffstat (limited to 'test/functional/provider/python3_spec.lua')
-rw-r--r--test/functional/provider/python3_spec.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/functional/provider/python3_spec.lua b/test/functional/provider/python3_spec.lua
index 68d4d1e2a1..a3c6c57a73 100644
--- a/test/functional/provider/python3_spec.lua
+++ b/test/functional/provider/python3_spec.lua
@@ -90,6 +90,12 @@ describe('python3 provider', function()
eq({1, 2, {['key'] = 'val'}}, eval([[py3eval('[1, 2, {"key": "val"}]')]]))
end)
+ it('pyxeval #10758', function()
+ eq(0, eval([[&pyxversion]]))
+ eq(3, eval([[pyxeval('sys.version_info[:3][0]')]]))
+ eq(3, eval([[&pyxversion]]))
+ end)
+
it('RPC call to expand("<afile>") during BufDelete #5245 #5617', function()
source([=[
python3 << EOF