public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
To: git-commits@fedoraproject.org
Subject: [rpms/python-readchar] rawhide: Fix pytest 9 compatibility: py.path.local arguments deprecated
Date: Thu, 25 Jun 2026 02:13:05 GMT [thread overview]
Message-ID: <178235358598.1.8202083181764241934.rpms-python-readchar-23ba454ce8ef@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/python-readchar
Branch : rawhide
Commit : 23ba454ce8ef2944529d435a756dbd5d1c6ad8c5
Author : Tomáš Hrnčiar <thrnciar@redhat.com>
Date : 2026-03-25T14:03:28+01:00
Stats : +41/-0 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/python-readchar/c/23ba454ce8ef2944529d435a756dbd5d1c6ad8c5?branch=rawhide
Log:
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
reply other threads:[~2026-06-25 2:13 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=178235358598.1.8202083181764241934.rpms-python-readchar-23ba454ce8ef@fedoraproject.org \
--to=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