[RFC] fix: has('python') error (#17252)

* fix: has('python') error

* fix: functional tests
This commit is contained in:
Shougo
2022-01-31 23:06:46 +09:00
committed by GitHub
parent 2a58e62145
commit f195345c93
3 changed files with 3 additions and 6 deletions

View File

@@ -1,6 +1,6 @@
" Dummy test provider, missing this required variable:
" let g:loaded_brokenenabled_provider = 0
function! provider#python#Call(method, args)
function! provider#python3#Call(method, args)
return 42
endfunction

View File

@@ -14,8 +14,8 @@ describe('providers', function()
command('set loadplugins')
-- Using test-fixture with broken impl:
-- test/functional/fixtures/autoload/provider/python.vim
eq('Vim:provider: python: missing required variable g:loaded_python_provider',
pcall_err(eval, "has('python')"))
eq('Vim:provider: python3: missing required variable g:loaded_python3_provider',
pcall_err(eval, "has('python3')"))
end)
it('with g:loaded_xx_provider, missing #Call()', function()