public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-neovim] f44: Update assert in tests for neovim 0.12
@ 2026-06-18 13:14 Andreas Schneider
0 siblings, 0 replies; only message in thread
From: Andreas Schneider @ 2026-06-18 13:14 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/python-neovim
Branch : f44
Commit : cb29ac30277c6b1ddf4c70709ada0274044282b7
Author : Andreas Schneider <asn@redhat.com>
Date : 2026-06-18T15:13:54+02:00
Stats : +37/-0 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/python-neovim/c/cb29ac30277c6b1ddf4c70709ada0274044282b7?branch=f44
Log:
Update assert in tests for neovim 0.12
- resolves: rhbz#2485912
---
diff --git a/pynvim-update-assert-for-neovim-0.12.patch b/pynvim-update-assert-for-neovim-0.12.patch
new file mode 100644
index 0000000..a40711e
--- /dev/null
+++ b/pynvim-update-assert-for-neovim-0.12.patch
@@ -0,0 +1,35 @@
+From 1950eae0e12de9dac561f8071100c11593501c9a Mon Sep 17 00:00:00 2001
+From: Ryan Campbell <ryan@campbellr.ca>
+Date: Thu, 9 Apr 2026 09:08:06 -0600
+Subject: [PATCH] test: update asserts for Nvim 0.12 error messages #615
+
+In 0.12.0, the error message is now:
+
+ Invalid cursor line: out of range
+
+This updates the test to handle both old and new error messages.
+---
+ test/test_vim.py | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+diff --git a/test/test_vim.py b/test/test_vim.py
+index 8a76f5e6..26e2fcea 100644
+--- a/test/test_vim.py
++++ b/test/test_vim.py
+@@ -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
+@@ -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:
diff --git a/python-neovim.spec b/python-neovim.spec
index b4beab0..541c289 100644
--- a/python-neovim.spec
+++ b/python-neovim.spec
@@ -16,6 +16,8 @@ Summary: Python client to Neovim
URL: https://github.com/neovim/pynvim
Source0: https://github.com/neovim/pynvim/archive/%{version}/pynvim-%{version}.tar.gz
+Patch0: pynvim-update-assert-for-neovim-0.12.patch
+
BuildArch: noarch
BuildRequires: make
BuildRequires: python3-devel
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-06-18 13:14 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-18 13:14 [rpms/python-neovim] f44: Update assert in tests for neovim 0.12 Andreas Schneider
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox