From 48b3e5c0e7cae713fe2dd85e3219e0be9cfcd7bc Mon Sep 17 00:00:00 2001 From: Dave Halter Date: Tue, 4 Aug 2020 15:07:39 +0200 Subject: [PATCH] In older versions of VIM bufname needs an argument --- test/vspec/choose-venv.vim | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/vspec/choose-venv.vim b/test/vspec/choose-venv.vim index 3c2c6ac..d93ea07 100644 --- a/test/vspec/choose-venv.vim +++ b/test/vspec/choose-venv.vim @@ -13,17 +13,17 @@ describe 'simple:' it 'choose' Expect g:jedi#environment_path == 'auto' - Expect bufname() == '' + Expect bufname('%') == '' JediChooseEnvironment " A Python executable needs to be a few letters Expect len(getline('.')) > 5 - Expect bufname() == 'Hit Enter to Choose an Environment' + Expect bufname('%') == 'Hit Enter to Choose an Environment' execute "normal \" Expect g:jedi#environment_path != 'auto' bd " TODO why is this necessary? There seems to be a random buffer. - Expect bufname() == '' + Expect bufname('%') == '' Expect getline('.') == 'foo' end end