From 48b43352b052392418888c5a10c7802e7388a24a Mon Sep 17 00:00:00 2001 From: Björn Linse Date: Wed, 14 Aug 2019 22:36:43 +0200 Subject: pyxversion: fix logic error #10759 Do not incorrectly prefer python2 if python3 is working. fixes #10758 --- test/functional/provider/python3_spec.lua | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'test/functional/provider/python3_spec.lua') 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("") during BufDelete #5245 #5617', function() source([=[ python3 << EOF -- cgit