From 853683e72a780afef3ecebd8d46e32983abe1798 Mon Sep 17 00:00:00 2001 From: "Justin M. Keyes" Date: Mon, 9 Sep 2019 10:54:07 -0700 Subject: provider: has("python3_dynamic") et al. #10980 Vim added more flags for testing yet more dimensions of its Python situation. Handle those in eval_has_provider(). vim-patch:8.0.1436: not enough information about what Python version may work Problem: Not enough information about what Python version may work. Solution: Add "python_compiled", "python3_compiled", "python_dynamic" and "python3_dynamic" values for has(). ref: https://github.com/neovim/neovim/pull/10942#issuecomment-529479500 --- test/functional/provider/python3_spec.lua | 4 ++++ test/functional/provider/python_spec.lua | 4 ++++ 2 files changed, 8 insertions(+) (limited to 'test') diff --git a/test/functional/provider/python3_spec.lua b/test/functional/provider/python3_spec.lua index d7ca0bd420..b319d5e948 100644 --- a/test/functional/provider/python3_spec.lua +++ b/test/functional/provider/python3_spec.lua @@ -29,6 +29,10 @@ describe('python3 provider', function() it('feature test', function() eq(1, eval('has("python3")')) + eq(1, eval('has("python3_compiled")')) + eq(1, eval('has("python3_dynamic")')) + eq(0, eval('has("python3_dynamic_")')) + eq(0, eval('has("python3_")')) end) it('python3_execute', function() diff --git a/test/functional/provider/python_spec.lua b/test/functional/provider/python_spec.lua index eab4b29d3a..986f10b2e9 100644 --- a/test/functional/provider/python_spec.lua +++ b/test/functional/provider/python_spec.lua @@ -37,6 +37,10 @@ end) describe('python feature test', function() it('works', function() eq(1, funcs.has('python')) + eq(1, funcs.has('python_compiled')) + eq(1, funcs.has('python_dynamic')) + eq(0, funcs.has('python_dynamic_')) + eq(0, funcs.has('python_')) end) end) -- cgit