aboutsummaryrefslogtreecommitdiff
path: root/test/functional/runtime/autoload/provider/python3_spec.lua
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2015-08-07 16:10:22 -0400
committerJustin M. Keyes <justinkz@gmail.com>2015-08-09 22:33:28 -0400
commit698482ec3e02ede1e5fe3a4cb087df29b0e0e36c (patch)
tree21dddbd422fd15a39ed76de5dbccd484c2c74fb6 /test/functional/runtime/autoload/provider/python3_spec.lua
parent21c0d87a242a50e09445ece0fdef8780394f6457 (diff)
downloadrneovim-698482ec3e02ede1e5fe3a4cb087df29b0e0e36c.tar.gz
rneovim-698482ec3e02ede1e5fe3a4cb087df29b0e0e36c.tar.bz2
rneovim-698482ec3e02ede1e5fe3a4cb087df29b0e0e36c.zip
test: python: report pending() if python{2,3} is missing
Diffstat (limited to 'test/functional/runtime/autoload/provider/python3_spec.lua')
-rw-r--r--test/functional/runtime/autoload/provider/python3_spec.lua10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/functional/runtime/autoload/provider/python3_spec.lua b/test/functional/runtime/autoload/provider/python3_spec.lua
index 43889b7b2a..5be5390370 100644
--- a/test/functional/runtime/autoload/provider/python3_spec.lua
+++ b/test/functional/runtime/autoload/provider/python3_spec.lua
@@ -1,19 +1,19 @@
do
- local proc =
- io.popen([[python3 -c 'import neovim, sys; sys.stdout.write("ok")' 2> /dev/null]])
+ local proc = io.popen(
+ [[python3 -c 'import neovim, sys; sys.stdout.write("ok")' 2> /dev/null]])
if proc:read() ~= 'ok' then
- -- Don't run these tests if python3 is not available
+ pending(
+ 'python3 (or the python3 neovim module) is broken or missing',
+ function() end)
return
end
end
-
local helpers = require('test.functional.helpers')
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
-
describe('python3 commands and functions', function()
before_each(function()
clear()