Skip to content

Commit 6614b9c

Browse files
committed
tests: don't use fragile input() for entering a function
1 parent 59112c6 commit 6614b9c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/conftest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
@pytest.fixture(autouse=True)
1212
def cleanup_func(vim):
13-
fun = textwrap.dedent(''':function BeforeEachTest()
13+
fun = textwrap.dedent('''function! BeforeEachTest()
1414
set all&
1515
redir => groups
1616
silent augroup
@@ -47,7 +47,7 @@ def cleanup_func(vim):
4747
comclear
4848
endfunction
4949
''')
50-
vim.input(fun)
50+
vim.command(fun)
5151
vim.command('call BeforeEachTest()')
5252
assert len(vim.tabpages) == len(vim.windows) == len(vim.buffers) == 1
5353

0 commit comments

Comments
 (0)