Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion test/test_vim.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""Tests interaction with neovim via Nvim API (with child process)."""

import os
import re
import sys
import tempfile
from pathlib import Path
Expand Down Expand Up @@ -50,7 +51,7 @@ def test_command_output(vim: Nvim) -> None:
def test_command_error(vim: Nvim) -> None:
with pytest.raises(vim.error) as excinfo:
vim.current.window.cursor = -1, -1
assert excinfo.value.args == ('Cursor position outside buffer',)
assert re.search(r"Cursor position outside buffer|Invalid cursor line", excinfo.value.args[0])


def test_eval(vim: Nvim) -> None:
Expand Down
Loading