aboutsummaryrefslogtreecommitdiff
path: root/test/functional/provider/python3_spec.lua
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2018-12-12 00:17:27 +0100
committerJustin M. Keyes <justinkz@gmail.com>2018-12-12 01:26:21 +0100
commit61d0dfee32ce9a9fb2497b02558df02eabb61d1b (patch)
tree2c4baf45a88d58772382c99deb045897ce43e40d /test/functional/provider/python3_spec.lua
parent2b01c3a8a87a8d8ba26bc95b95441835634a2948 (diff)
downloadrneovim-61d0dfee32ce9a9fb2497b02558df02eabb61d1b.tar.gz
rneovim-61d0dfee32ce9a9fb2497b02558df02eabb61d1b.tar.bz2
rneovim-61d0dfee32ce9a9fb2497b02558df02eabb61d1b.zip
provider: repurpose E319
In Vim (and some vestigial parts of Nvim) E319 was a placeholder for ex_ni commands, i.e. commands that are only available in certain builds of Vim. That is obviously counter to Nvim's goals: all Nvim commands are available on all platforms and build types (the remaining ex_ni commands are actually just missing providers). We need an error id for "missing provider", so it makes sense to use E319 for that purpose. ref #9344 ref #3577
Diffstat (limited to 'test/functional/provider/python3_spec.lua')
-rw-r--r--test/functional/provider/python3_spec.lua7
1 files changed, 6 insertions, 1 deletions
diff --git a/test/functional/provider/python3_spec.lua b/test/functional/provider/python3_spec.lua
index 93ac3ae017..5e73690986 100644
--- a/test/functional/provider/python3_spec.lua
+++ b/test/functional/provider/python3_spec.lua
@@ -2,6 +2,7 @@ local helpers = require('test.functional.helpers')(after_each)
local eval, command, feed = helpers.eval, helpers.command, helpers.feed
local eq, clear, insert = helpers.eq, helpers.clear, helpers.insert
local expect, write_file = helpers.expect, helpers.write_file
+local expect_err = helpers.expect_err
local feed_command = helpers.feed_command
local source = helpers.source
local missing_provider = helpers.missing_provider
@@ -9,7 +10,11 @@ local missing_provider = helpers.missing_provider
do
clear()
if missing_provider('python3') then
- pending('Python 3 (or the neovim module) is broken/missing', function() end)
+ it(':python3 reports E319 if provider is missing', function()
+ expect_err([[Vim%(python3%):E319: No "python3" provider found.*]],
+ command, 'python3 print("foo")')
+ end)
+ pending('Python 3 (or the pynvim module) is broken/missing', function() end)
return
end
end