diff options
author | Florian Walch <florian@fwalch.com> | 2015-09-27 00:27:44 +0200 |
---|---|---|
committer | Florian Walch <florian@fwalch.com> | 2015-09-27 00:27:44 +0200 |
commit | ded4a502199b283ac7d1184db7eae250c1255ad0 (patch) | |
tree | 16fd65dbf76036164a82d73fefabe01daed3670f /test/functional/provider/python3_spec.lua | |
parent | dbb5f41c976c33dcefad5b0ae318a6edad574f02 (diff) | |
parent | a3399f9a63bf6c7f5c13e7b6a82847f5af40c249 (diff) | |
download | rneovim-ded4a502199b283ac7d1184db7eae250c1255ad0.tar.gz rneovim-ded4a502199b283ac7d1184db7eae250c1255ad0.tar.bz2 rneovim-ded4a502199b283ac7d1184db7eae250c1255ad0.zip |
Merge #3316 'Travis: Install Python 3 Neovim module'.
Diffstat (limited to 'test/functional/provider/python3_spec.lua')
-rw-r--r-- | test/functional/provider/python3_spec.lua | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/test/functional/provider/python3_spec.lua b/test/functional/provider/python3_spec.lua index 5be5390370..5ecc1a0a91 100644 --- a/test/functional/provider/python3_spec.lua +++ b/test/functional/provider/python3_spec.lua @@ -1,19 +1,19 @@ +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 + do - local proc = io.popen( - [[python3 -c 'import neovim, sys; sys.stdout.write("ok")' 2> /dev/null]]) - if proc:read() ~= 'ok' then + command('let [g:interp, g:errors] = provider#pythonx#Detect(3)') + local errors = eval('g:errors') + if errors ~= '' then pending( - 'python3 (or the python3 neovim module) is broken or missing', + 'Python 3 (or the Python 3 neovim module) is broken or missing:\n' .. errors, 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() |