aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorShougo <Shougo.Matsu@gmail.com>2022-01-31 23:06:46 +0900
committerGitHub <noreply@github.com>2022-01-31 15:06:46 +0100
commitf195345c936eaecf423ab79473003e1ab337a17d (patch)
treef124e0bc7d3c6abfd4808627b36ce1ae8e33a603 /test
parent2a58e62145d64245e23825ca717aecf8eaaaddad (diff)
downloadrneovim-f195345c936eaecf423ab79473003e1ab337a17d.tar.gz
rneovim-f195345c936eaecf423ab79473003e1ab337a17d.tar.bz2
rneovim-f195345c936eaecf423ab79473003e1ab337a17d.zip
[RFC] fix: has('python') error (#17252)
* fix: has('python') error * fix: functional tests
Diffstat (limited to 'test')
-rw-r--r--test/functional/fixtures/autoload/provider/python3.vim (renamed from test/functional/fixtures/autoload/provider/python.vim)2
-rw-r--r--test/functional/provider/provider_spec.lua4
2 files changed, 3 insertions, 3 deletions
diff --git a/test/functional/fixtures/autoload/provider/python.vim b/test/functional/fixtures/autoload/provider/python3.vim
index d68360ac30..8ed4330a35 100644
--- a/test/functional/fixtures/autoload/provider/python.vim
+++ b/test/functional/fixtures/autoload/provider/python3.vim
@@ -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
diff --git a/test/functional/provider/provider_spec.lua b/test/functional/provider/provider_spec.lua
index 78bc4a4edb..3895b8613f 100644
--- a/test/functional/provider/provider_spec.lua
+++ b/test/functional/provider/provider_spec.lua
@@ -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()