We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0e90453 commit 1950eaeCopy full SHA for 1950eae
test/test_vim.py
@@ -1,6 +1,7 @@
1
"""Tests interaction with neovim via Nvim API (with child process)."""
2
3
import os
4
+import re
5
import sys
6
import tempfile
7
from pathlib import Path
@@ -50,7 +51,7 @@ def test_command_output(vim: Nvim) -> None:
50
51
def test_command_error(vim: Nvim) -> None:
52
with pytest.raises(vim.error) as excinfo:
53
vim.current.window.cursor = -1, -1
- assert excinfo.value.args == ('Cursor position outside buffer',)
54
+ assert re.search(r"Cursor position outside buffer|Invalid cursor line", excinfo.value.args[0])
55
56
57
def test_eval(vim: Nvim) -> None:
0 commit comments