[packages/python3-pytest-forked] Up to 1.7.5

arekm arekm at pld-linux.org
Thu Nov 12 09:53:06 CET 2026


commit 0fb8d2b1dc7f282d4784585de53592d7ac20e3a9
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Thu Nov 12 03:02:17 2026 +0100

    Up to 1.7.5

 pytest8.patch              | 45 ---------------------------------------------
 python3-pytest-forked.spec | 19 ++++++++-----------
 2 files changed, 8 insertions(+), 56 deletions(-)
---
diff --git a/python3-pytest-forked.spec b/python3-pytest-forked.spec
index a322327..3b21c45 100644
--- a/python3-pytest-forked.spec
+++ b/python3-pytest-forked.spec
@@ -5,25 +5,23 @@
 Summary:	Run each test in a forked subprocess
 Summary(pl.UTF-8):	Uruchamianie każdego testu w oddzielnym procesie
 Name:		python3-pytest-forked
-Version:	1.6.0
-Release:	2
+Version:	1.7.5
+Release:	1
 License:	MIT
 Group:		Libraries/Python
 #Source0Download: https://pypi.org/simple/pytest-forked/
-Source0:	https://files.pythonhosted.org/packages/source/p/pytest-forked/pytest-forked-%{version}.tar.gz
-# Source0-md5:	c2c026fc5bc4ad54649d7f85e36a62ec
-Patch0:		pytest8.patch
+Source0:	https://files.pythonhosted.org/packages/source/p/pytest-forked/pytest_forked-%{version}.tar.gz
+# Source0-md5:	fa0d304ffbff03dcfa8ce5503c2d5d94
 URL:		https://github.com/pytest-dev/pytest-forked
-BuildRequires:	python3-modules >= 1:3.7
+BuildRequires:	python3-modules >= 1:3.10
 BuildRequires:	python3-setuptools >= 1:41.4
 BuildRequires:	python3-setuptools_scm >= 3.3
 %if %{with tests}
-BuildRequires:	python3-py
-BuildRequires:	python3-pytest >= 3.10
+BuildRequires:	python3-pytest >= 7
 %endif
 BuildRequires:	rpm-pythonprov
 BuildRequires:	rpmbuild(macros) >= 1.714
-Requires:	python3-modules >= 1:3.7
+Requires:	python3-modules >= 1:3.10
 BuildArch:	noarch
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -34,8 +32,7 @@ Run each test in a forked subprocess.
 Uruchamianie każdego testu w oddzielnym procesie.
 
 %prep
-%setup -q -n pytest-forked-%{version}
-%patch -P 0 -p1
+%setup -q -n pytest_forked-%{version}
 
 %build
 %py3_build
diff --git a/pytest8.patch b/pytest8.patch
deleted file mode 100644
index ffe48a1..0000000
--- a/pytest8.patch
+++ /dev/null
@@ -1,45 +0,0 @@
-From 398f003660dda242b97217390718a2a90c3d7a88 Mon Sep 17 00:00:00 2001
-From: Stanislav Levin <slev at altlinux.org>
-Date: Tue, 13 Feb 2024 12:44:53 +0300
-Subject: [PATCH] Sync expected test_xfail's xpassed summary to Pytest 8
-
-With Pytest 8:
-https://docs.pytest.org/en/stable/changelog.html#pytest-8-0-0rc2-2024-01-17
-
-> For xpasses, add - in summary between test name and reason, to match how xfail is displayed.
-
-Fixes: https://github.com/pytest-dev/pytest-forked/issues/89
-Signed-off-by: Stanislav Levin <slev at altlinux.org>
----
- testing/test_xfail_behavior.py | 11 +++++------
- 1 file changed, 5 insertions(+), 6 deletions(-)
-
-diff --git a/testing/test_xfail_behavior.py b/testing/test_xfail_behavior.py
-index 15edd93..d4e5ee7 100644
---- a/testing/test_xfail_behavior.py
-+++ b/testing/test_xfail_behavior.py
-@@ -7,6 +7,7 @@
- IS_PYTEST4_PLUS = int(pytest.__version__[0]) >= 4  # noqa: WPS609
- FAILED_WORD = "FAILED" if IS_PYTEST4_PLUS else "FAIL"
- PYTEST_GTE_7_2 = hasattr(pytest, "version_tuple") and pytest.version_tuple >= (7, 2)  # type: ignore[attr-defined]
-+PYTEST_GTE_8_0 = hasattr(pytest, "version_tuple") and pytest.version_tuple >= (8, 0)  # type: ignore[attr-defined]
- 
- pytestmark = pytest.mark.skipif(  # pylint: disable=invalid-name
-     not hasattr(os, "fork"),  # noqa: WPS421
-@@ -60,12 +61,10 @@ def test_xfail(is_crashing, is_strict, testdir):
-     if expected_lowercase == "xpassed":
-         # XPASS wouldn't have the crash message from
-         # pytest-forked because the crash doesn't happen
--        short_test_summary = " ".join(
--            (
--                short_test_summary,
--                "The process gets terminated",
--            )
--        )
-+        if PYTEST_GTE_8_0:
-+            short_test_summary += " -"
-+        short_test_summary += " The process gets terminated"
-+
-     reason_string = (
-         f"reason: The process gets terminated; "
-         f"pytest-forked reason: "
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python3-pytest-forked.git/commitdiff/0fb8d2b1dc7f282d4784585de53592d7ac20e3a9



More information about the pld-cvs-commit mailing list