public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Andreas Schneider <asn@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/python-neovim] rawhide: Update assert in tests for neovim 0.12
Date: Thu, 18 Jun 2026 13:06:22 GMT [thread overview]
Message-ID: <178178798257.1.7306064132654160551.rpms-python-neovim-d0445c7201df@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/python-neovim
Branch : rawhide
Commit : d0445c7201df8c935ac2227e5a2c9382580700ae
Author : Andreas Schneider <asn@redhat.com>
Date : 2026-06-18T15:05:54+02:00
Stats : +37/-0 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/python-neovim/c/d0445c7201df8c935ac2227e5a2c9382580700ae?branch=rawhide
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
reply other threads:[~2026-06-18 13:06 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=178178798257.1.7306064132654160551.rpms-python-neovim-d0445c7201df@fedoraproject.org \
--to=asn@redhat.com \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox