Merge pull request #8650 from jamessan/skip-pydo-tests

oldtest: Disable tests that :py(3)do stop executing when buffer changes
This commit is contained in:
James McCoy
2018-06-27 12:51:36 -04:00
committed by GitHub
2 changed files with 22 additions and 16 deletions

View File

@@ -13,12 +13,15 @@ func Test_pydo()
pydo vim.command("%d_") pydo vim.command("%d_")
bwipe! bwipe!
" Check switching to another buffer does not trigger ml_get error. " Disabled until neovim/neovim#8554 is resolved
new if 0
let wincount = winnr('$') " Check switching to another buffer does not trigger ml_get error.
call setline(1, ['one', 'two', 'three']) new
pydo vim.command("new") let wincount = winnr('$')
call assert_equal(wincount + 1, winnr('$')) call setline(1, ['one', 'two', 'three'])
bwipe! pydo vim.command("new")
bwipe! call assert_equal(wincount + 1, winnr('$'))
bwipe!
bwipe!
endif
endfunc endfunc

View File

@@ -13,12 +13,15 @@ func Test_py3do()
py3do vim.command("%d_") py3do vim.command("%d_")
bwipe! bwipe!
" Check switching to another buffer does not trigger an ml_get error. " Disabled until neovim/neovim#8554 is resolved
new if 0
let wincount = winnr('$') " Check switching to another buffer does not trigger an ml_get error.
call setline(1, ['one', 'two', 'three']) new
py3do vim.command("new") let wincount = winnr('$')
call assert_equal(wincount + 1, winnr('$')) call setline(1, ['one', 'two', 'three'])
bwipe! py3do vim.command("new")
bwipe! call assert_equal(wincount + 1, winnr('$'))
bwipe!
bwipe!
endif
endfunc endfunc