From 9946a5ebd92e7c719380022f1c54c4561fb60dcd Mon Sep 17 00:00:00 2001 From: James McCoy Date: Wed, 27 Jun 2018 08:03:46 -0400 Subject: [PATCH] oldtest: Disable tests that :py(3)do stop executing when buffer changes The current nvim <-> client handling of do_range needs to be adapted to handle these sorts of checks. See https://github.com/neovim/neovim/issues/8554 --- src/nvim/testdir/test_python2.vim | 19 +++++++++++-------- src/nvim/testdir/test_python3.vim | 19 +++++++++++-------- 2 files changed, 22 insertions(+), 16 deletions(-) diff --git a/src/nvim/testdir/test_python2.vim b/src/nvim/testdir/test_python2.vim index fb98c1eda7..63c38cd5d1 100644 --- a/src/nvim/testdir/test_python2.vim +++ b/src/nvim/testdir/test_python2.vim @@ -13,12 +13,15 @@ func Test_pydo() pydo vim.command("%d_") bwipe! - " Check switching to another buffer does not trigger ml_get error. - new - let wincount = winnr('$') - call setline(1, ['one', 'two', 'three']) - pydo vim.command("new") - call assert_equal(wincount + 1, winnr('$')) - bwipe! - bwipe! + " Disabled until neovim/neovim#8554 is resolved + if 0 + " Check switching to another buffer does not trigger ml_get error. + new + let wincount = winnr('$') + call setline(1, ['one', 'two', 'three']) + pydo vim.command("new") + call assert_equal(wincount + 1, winnr('$')) + bwipe! + bwipe! + endif endfunc diff --git a/src/nvim/testdir/test_python3.vim b/src/nvim/testdir/test_python3.vim index bb241dacb1..f5b2c89853 100644 --- a/src/nvim/testdir/test_python3.vim +++ b/src/nvim/testdir/test_python3.vim @@ -13,12 +13,15 @@ func Test_py3do() py3do vim.command("%d_") bwipe! - " Check switching to another buffer does not trigger an ml_get error. - new - let wincount = winnr('$') - call setline(1, ['one', 'two', 'three']) - py3do vim.command("new") - call assert_equal(wincount + 1, winnr('$')) - bwipe! - bwipe! + " Disabled until neovim/neovim#8554 is resolved + if 0 + " Check switching to another buffer does not trigger an ml_get error. + new + let wincount = winnr('$') + call setline(1, ['one', 'two', 'three']) + py3do vim.command("new") + call assert_equal(wincount + 1, winnr('$')) + bwipe! + bwipe! + endif endfunc