Skip to content

Commit c3fe993

Browse files
committed
fix(tests): skip failing test_broadcast on neovim < 0.11
The fix made in #570 actually works for Nvim 0.11+, depending on the behavior change neovim/neovim#28487. We should just skip test_broadcast on older Nvim versions (see #585).
1 parent 3a4b670 commit c3fe993

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

test/test_events.py

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
# -*- coding: utf-8 -*-
1+
import pytest
2+
23
from pynvim.api import Nvim
34

45

@@ -37,6 +38,10 @@ def test_async_error(vim: Nvim) -> None:
3738

3839

3940
def test_broadcast(vim: Nvim) -> None:
41+
if (vim.version.major, vim.version.minor) < (0, 11):
42+
# see #570, neovim/neovim#28487
43+
pytest.skip("neovim/neovim#28487")
44+
4045
vim.command('call rpcnotify(0, "event1", 1, 2, 3)')
4146
vim.command('call rpcnotify(0, "event2", 4, 5, 6)')
4247
vim.command('call rpcnotify(0, "event2", 7, 8, 9)')

0 commit comments

Comments
 (0)