aboutsummaryrefslogtreecommitdiff
path: root/test/functional/runtime/autoload/provider/python_spec.lua
diff options
context:
space:
mode:
authorLucas Hoffmann <l-m-h@web.de>2015-06-30 14:16:22 +0200
committerLucas Hoffmann <l-m-h@web.de>2015-06-30 18:06:06 +0200
commit8f4e3a68a88a7c98afa3ff8c53e98d7ceb32fc15 (patch)
treea455ddee0b4f2632d007be78436cbd178a98da87 /test/functional/runtime/autoload/provider/python_spec.lua
parent652ee0348cbbdfe4b1ecc7c3437ce4b45257254b (diff)
downloadrneovim-8f4e3a68a88a7c98afa3ff8c53e98d7ceb32fc15.tar.gz
rneovim-8f4e3a68a88a7c98afa3ff8c53e98d7ceb32fc15.tar.bz2
rneovim-8f4e3a68a88a7c98afa3ff8c53e98d7ceb32fc15.zip
tests: Use new write_file() function in tests.
Diffstat (limited to 'test/functional/runtime/autoload/provider/python_spec.lua')
-rw-r--r--test/functional/runtime/autoload/provider/python_spec.lua6
1 files changed, 2 insertions, 4 deletions
diff --git a/test/functional/runtime/autoload/provider/python_spec.lua b/test/functional/runtime/autoload/provider/python_spec.lua
index 5398d668bf..e71a7a4309 100644
--- a/test/functional/runtime/autoload/provider/python_spec.lua
+++ b/test/functional/runtime/autoload/provider/python_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('python commands and functions', function()
@@ -46,9 +46,7 @@ describe('python commands and functions', function()
it('pyfile', function()
local fname = 'pyfile.py'
- local F = io.open(fname, 'w')
- F:write('vim.command("let set_by_pyfile = 123")')
- F:close()
+ write_file(fname, 'vim.command("let set_by_pyfile = 123")')
command('pyfile pyfile.py')
eq(123, eval('g:set_by_pyfile'))
os.remove(fname)