Skip to content

Commit

Permalink
fix(tests): skip failing test_broadcast on neovim < 0.11
Browse files Browse the repository at this point in the history
The fix made in neovim#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 neovim#585).
  • Loading branch information
wookayin committed Jan 6, 2025
1 parent 3a4b670 commit c3fe993
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion test/test_events.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# -*- coding: utf-8 -*-
import pytest

from pynvim.api import Nvim


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


def test_broadcast(vim: Nvim) -> None:
if (vim.version.major, vim.version.minor) < (0, 11):
# see #570, neovim/neovim#28487
pytest.skip("neovim/neovim#28487")

vim.command('call rpcnotify(0, "event1", 1, 2, 3)')
vim.command('call rpcnotify(0, "event2", 4, 5, 6)')
vim.command('call rpcnotify(0, "event2", 7, 8, 9)')
Expand Down

0 comments on commit c3fe993

Please sign in to comment.