Skip to content

Commit 33cd0fa

Browse files
committed
fix(tests): remove test for deprecated API
nvim_subscribe, nvim_unsubscribe are deprecated since Nvim 0.11: neovim/neovim#28487
1 parent 4d65226 commit 33cd0fa

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

test/test_events.py

-20
Original file line numberDiff line numberDiff line change
@@ -34,23 +34,3 @@ def test_async_error(vim: Nvim) -> None:
3434
vim.command("lolwut", async_=True)
3535
event = vim.next_message()
3636
assert event[1] == 'nvim_error_event'
37-
38-
39-
def test_broadcast(vim: Nvim) -> None:
40-
vim.subscribe('event2')
41-
vim.command('call rpcnotify(0, "event1", 1, 2, 3)')
42-
vim.command('call rpcnotify(0, "event2", 4, 5, 6)')
43-
vim.command('call rpcnotify(0, "event2", 7, 8, 9)')
44-
event = vim.next_message()
45-
assert event[1] == 'event2'
46-
assert event[2] == [4, 5, 6]
47-
event = vim.next_message()
48-
assert event[1] == 'event2'
49-
assert event[2] == [7, 8, 9]
50-
vim.unsubscribe('event2')
51-
vim.subscribe('event1')
52-
vim.command('call rpcnotify(0, "event2", 10, 11, 12)')
53-
vim.command('call rpcnotify(0, "event1", 13, 14, 15)')
54-
msg = vim.next_message()
55-
assert msg[1] == 'event1'
56-
assert msg[2] == [13, 14, 15]

0 commit comments

Comments
 (0)