public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-readchar] rawhide: Merge #1 `Fix pytest 9 compatibility: py.path.local arguments deprecated`
@ 2026-06-25  2:13 Filipe Rosset
  0 siblings, 0 replies; only message in thread
From: Filipe Rosset @ 2026-06-25  2:13 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/python-readchar
Branch : rawhide
Commit : 02aaf2f23a0d59bd03879b752ec05cdc4315c683
Author : Filipe Rosset <rosset.filipe@gmail.com>
Date   : 2026-06-25T02:13:03+00:00
Stats  : +41/-0 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/python-readchar/c/02aaf2f23a0d59bd03879b752ec05cdc4315c683?branch=rawhide

Log:
Merge #1 `Fix pytest 9 compatibility: py.path.local arguments deprecated`

---
diff --git a/5165992.patch b/5165992.patch
new file mode 100644
index 0000000..4641eb8
--- /dev/null
+++ b/5165992.patch
@@ -0,0 +1,39 @@
+From 5165992002f211fe85175bcbb4f9a60d5e90fdac Mon Sep 17 00:00:00 2001
+From: Martin Weinelt <hexa@darmstadt.ccc.de>
+Date: Sun, 25 Jan 2026 02:05:23 +0100
+Subject: [PATCH] Fix pytest 9 compatibility
+
+The path argument has been deprecated in favor of the collection_path
+argument beecause the former uses the deprecated py library, where the
+latter uses pathlib.
+---
+ tests/linux/conftest.py   | 2 +-
+ tests/windows/conftest.py | 2 +-
+ 2 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/tests/linux/conftest.py b/tests/linux/conftest.py
+index 038203f..3283724 100644
+--- a/tests/linux/conftest.py
++++ b/tests/linux/conftest.py
+@@ -8,7 +8,7 @@
+ 
+ 
+ # ignore all tests in this folder if not on linux
+-def pytest_ignore_collect(path, config):
++def pytest_ignore_collect(collection_path, config):
+     if not sys.platform.startswith("linux"):
+         return True
+ 
+diff --git a/tests/windows/conftest.py b/tests/windows/conftest.py
+index 492d7d7..e0264e8 100644
+--- a/tests/windows/conftest.py
++++ b/tests/windows/conftest.py
+@@ -4,7 +4,7 @@
+ 
+ 
+ # ignore all tests in this folder if not on windows
+-def pytest_ignore_collect(path, config):
++def pytest_ignore_collect(collection_path, config):
+     if sys.platform not in ("win32", "cygwin"):
+         return True
+ 

diff --git a/python-readchar.spec b/python-readchar.spec
index f337353..64566df 100644
--- a/python-readchar.spec
+++ b/python-readchar.spec
@@ -9,6 +9,8 @@ License:        MIT
 URL:            https://github.com/magmax/python-readchar
 # The PyPI tarball doesn't include tests so use GitHub instead
 Source:         %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
+# Fix pytest 9 compatibility: py.path.local arguments deprecated
+Patch:          https://github.com/magmax/python-readchar/commit/5165992.patch
 
 BuildArch:      noarch
 BuildRequires:  python3-devel

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-06-25  2:13 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-25  2:13 [rpms/python-readchar] rawhide: Merge #1 `Fix pytest 9 compatibility: py.path.local arguments deprecated` Filipe Rosset

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox