From 8b171b8c507dd9db01abee169d3a71e33f8e8ff4 Mon Sep 17 00:00:00 2001 From: ZyX Date: Fri, 12 May 2017 20:03:05 +0300 Subject: functests: Test invalid behaviour Test correctly fail for oneline ruby, python and python3. --- test/functional/provider/python3_spec.lua | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'test/functional/provider/python3_spec.lua') diff --git a/test/functional/provider/python3_spec.lua b/test/functional/provider/python3_spec.lua index 89a546675f..68818afd05 100644 --- a/test/functional/provider/python3_spec.lua +++ b/test/functional/provider/python3_spec.lua @@ -3,12 +3,11 @@ 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 feed_command = helpers.feed_command +local check_provider = helpers.check_provider do clear() - command('let [g:interp, g:errors] = provider#pythonx#Detect(3)') - local errors = eval('g:errors') - if errors ~= '' then + if not check_provider('python3') then pending( 'Python 3 (or the Python 3 neovim module) is broken or missing:\n' .. errors, function() end) -- cgit