aboutsummaryrefslogtreecommitdiff
path: root/test/functional/runtime/autoload/provider/python3_spec.lua
diff options
context:
space:
mode:
authorMichael Reed <Pyrohh@users.noreply.github.com>2015-07-06 04:07:23 -0400
committerMichael Reed <Pyrohh@users.noreply.github.com>2015-07-06 04:07:23 -0400
commit1b78ad1c4d1533fe3089b9744a5306616e562f3e (patch)
tree19a6e6c0de104ad0d88031e7d255c0c05d3da080 /test/functional/runtime/autoload/provider/python3_spec.lua
parentdeab194413af1475f8f4d8657500c1250521059e (diff)
parent8f4e3a68a88a7c98afa3ff8c53e98d7ceb32fc15 (diff)
downloadrneovim-1b78ad1c4d1533fe3089b9744a5306616e562f3e.tar.gz
rneovim-1b78ad1c4d1533fe3089b9744a5306616e562f3e.tar.bz2
rneovim-1b78ad1c4d1533fe3089b9744a5306616e562f3e.zip
Merge pull request #2932 from lucc/helpers/write_file
[RDY] tests: Add write_file helper function Reviewed-by: Florian Walch <florian@fwalch.com> Reviewed-by: Michael Reed <m.reed@mykolab.com>
Diffstat (limited to 'test/functional/runtime/autoload/provider/python3_spec.lua')
-rw-r--r--test/functional/runtime/autoload/provider/python3_spec.lua6
1 files changed, 2 insertions, 4 deletions
diff --git a/test/functional/runtime/autoload/provider/python3_spec.lua b/test/functional/runtime/autoload/provider/python3_spec.lua
index 6e6ba96f81..43889b7b2a 100644
--- a/test/functional/runtime/autoload/provider/python3_spec.lua
+++ b/test/functional/runtime/autoload/provider/python3_spec.lua
@@ -11,7 +11,7 @@ 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 = helpers.expect
+local expect, write_file = helpers.expect, helpers.write_file
describe('python3 commands and functions', function()
@@ -46,9 +46,7 @@ describe('python3 commands and functions', function()
it('py3file', function()
local fname = 'py3file.py'
- local F = io.open(fname, 'w')
- F:write('vim.command("let set_by_py3file = 123")')
- F:close()
+ write_file(fname, 'vim.command("let set_by_py3file = 123")')
command('py3file py3file.py')
eq(123, eval('g:set_by_py3file'))
os.remove(fname)