mirror of
https://github.com/neovim/neovim.git
synced 2024-12-20 11:15:14 -07:00
[RFC] fix: has('python') error (#17252)
* fix: has('python') error * fix: functional tests
This commit is contained in:
parent
2a58e62145
commit
f195345c93
@ -11004,10 +11004,7 @@ typval_T eval_call_provider(char *provider, char *method, list_T *arguments, boo
|
|||||||
bool eval_has_provider(const char *feat)
|
bool eval_has_provider(const char *feat)
|
||||||
{
|
{
|
||||||
if (!strequal(feat, "clipboard")
|
if (!strequal(feat, "clipboard")
|
||||||
&& !strequal(feat, "python")
|
|
||||||
&& !strequal(feat, "python3")
|
&& !strequal(feat, "python3")
|
||||||
&& !strequal(feat, "python_compiled")
|
|
||||||
&& !strequal(feat, "python_dynamic")
|
|
||||||
&& !strequal(feat, "python3_compiled")
|
&& !strequal(feat, "python3_compiled")
|
||||||
&& !strequal(feat, "python3_dynamic")
|
&& !strequal(feat, "python3_dynamic")
|
||||||
&& !strequal(feat, "perl")
|
&& !strequal(feat, "perl")
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
" Dummy test provider, missing this required variable:
|
" Dummy test provider, missing this required variable:
|
||||||
" let g:loaded_brokenenabled_provider = 0
|
" let g:loaded_brokenenabled_provider = 0
|
||||||
|
|
||||||
function! provider#python#Call(method, args)
|
function! provider#python3#Call(method, args)
|
||||||
return 42
|
return 42
|
||||||
endfunction
|
endfunction
|
@ -14,8 +14,8 @@ describe('providers', function()
|
|||||||
command('set loadplugins')
|
command('set loadplugins')
|
||||||
-- Using test-fixture with broken impl:
|
-- Using test-fixture with broken impl:
|
||||||
-- test/functional/fixtures/autoload/provider/python.vim
|
-- test/functional/fixtures/autoload/provider/python.vim
|
||||||
eq('Vim:provider: python: missing required variable g:loaded_python_provider',
|
eq('Vim:provider: python3: missing required variable g:loaded_python3_provider',
|
||||||
pcall_err(eval, "has('python')"))
|
pcall_err(eval, "has('python3')"))
|
||||||
end)
|
end)
|
||||||
|
|
||||||
it('with g:loaded_xx_provider, missing #Call()', function()
|
it('with g:loaded_xx_provider, missing #Call()', function()
|
||||||
|
Loading…
Reference in New Issue
Block a user