public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-pytest-forked] rawhide: Update to new upstream release 1.7.5 (#2512748)
@ 2026-08-10 14:45 Scott Talbert
0 siblings, 0 replies; only message in thread
From: Scott Talbert @ 2026-08-10 14:45 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/python-pytest-forked
Branch : rawhide
Commit : 5e03f79799ab9e8d21acb9358a75067919c11f6c
Author : Scott Talbert <swt@techie.net>
Date : 2026-08-10T10:44:48-04:00
Stats : +16/-115 in 6 file(s)
URL : https://src.fedoraproject.org/rpms/python-pytest-forked/c/5e03f79799ab9e8d21acb9358a75067919c11f6c?branch=rawhide
Log:
Update to new upstream release 1.7.5 (#2512748)
---
diff --git a/.gitignore b/.gitignore
index 499bda3..03cbe5b 100644
--- a/.gitignore
+++ b/.gitignore
@@ -7,3 +7,4 @@
/pytest-forked-1.4.0.tar.gz
/pytest-forked-1.5.0.tar.gz
/pytest-forked-1.6.0.tar.gz
+/pytest_forked-1.7.5.tar.gz
diff --git a/8f59f07.patch b/8f59f07.patch
deleted file mode 100644
index a7dea5a..0000000
--- a/8f59f07.patch
+++ /dev/null
@@ -1,30 +0,0 @@
-From 8f59f07681757446a7fdf67c998fffd90fd8029e Mon Sep 17 00:00:00 2001
-From: Scott Talbert <swt@techie.net>
-Date: Tue, 10 Feb 2026 09:42:39 -0500
-Subject: [PATCH] Adapt tests to pytest 9 output format (#96)
-
----
- testing/test_xfail_behavior.py | 3 +++
- 1 file changed, 3 insertions(+)
-
-diff --git a/testing/test_xfail_behavior.py b/testing/test_xfail_behavior.py
-index 2b8946a..fdad433 100644
---- a/testing/test_xfail_behavior.py
-+++ b/testing/test_xfail_behavior.py
-@@ -8,6 +8,7 @@
- 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]
-+PYTEST_GTE_9_0 = hasattr(pytest, "version_tuple") and pytest.version_tuple >= (9, 0) # type: ignore[attr-defined]
-
- pytestmark = pytest.mark.skipif( # pylint: disable=invalid-name
- not hasattr(os, "fork"), # noqa: WPS421
-@@ -72,6 +73,8 @@ def test_xfail(is_crashing, is_strict, testdir):
- )
- if expected_lowercase == "xfailed" and PYTEST_GTE_7_2:
- short_test_summary += " - " + reason_string
-+ if expected_lowercase == "failed" and PYTEST_GTE_9_0:
-+ short_test_summary += " - [XPASS(strict)] The process gets termin..."
- total_summary_line = f"*==== 1 {expected_lowercase!s} in 0.*s* ====*"
-
- expected_lines = (
diff --git a/b2742322d3.patch b/b2742322d3.patch
deleted file mode 100644
index ffe48a1..0000000
--- a/b2742322d3.patch
+++ /dev/null
@@ -1,45 +0,0 @@
-From 398f003660dda242b97217390718a2a90c3d7a88 Mon Sep 17 00:00:00 2001
-From: Stanislav Levin <slev@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@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: "
diff --git a/fix-pytest5-compatibility.patch b/fix-pytest5-compatibility.patch
deleted file mode 100644
index 9b10c3b..0000000
--- a/fix-pytest5-compatibility.patch
+++ /dev/null
@@ -1,20 +0,0 @@
-diff --git a/src/pytest_forked/__init__.py b/src/pytest_forked/__init__.py
-index fa0600d..886c4c8 100644
---- a/src/pytest_forked/__init__.py
-+++ b/src/pytest_forked/__init__.py
-@@ -71,13 +71,8 @@ def forked_run_report(item):
-
-
- def report_process_crash(item, result):
-- try:
-- from _pytest.compat import getfslineno
-- except ImportError:
-- # pytest<4.2
-- path, lineno = item._getfslineno()
-- else:
-- path, lineno = getfslineno(item)
-+ from _pytest._code.source import getfslineno
-+ path, lineno = getfslineno(item)
- info = ("%s:%s: running the test CRASHED with signal %d" %
- (path, lineno, result.signal))
- from _pytest import runner
diff --git a/python-pytest-forked.spec b/python-pytest-forked.spec
index 7c57d3b..852e940 100644
--- a/python-pytest-forked.spec
+++ b/python-pytest-forked.spec
@@ -1,36 +1,29 @@
-%global pypi_name pytest-forked
+%global pypi_name pytest_forked
-Name: python-%{pypi_name}
-Version: 1.6.0
-Release: 17%{?dist}
-Summary: py.test plugin for running tests in isolated forked subprocesses
+Name: python-pytest-forked
+Version: 1.7.5
+Release: 1%{?dist}
+Summary: pytest plugin for running tests in isolated forked subprocesses
License: MIT
URL: https://github.com/pytest-dev/pytest-forked
Source0: %{pypi_source}
-# compatibility with pytest 8
-Patch: https://github.com/pytest-dev/pytest-forked/commit/b2742322d3.patch
-# compatibility with pytest 9
-Patch: https://github.com/pytest-dev/pytest-forked/commit/8f59f07.patch
-
BuildArch: noarch
-
BuildRequires: python3-devel
%global _description %{expand:
-The pytest-forked plugin extends py.test by adding an option to run tests in
+The pytest-forked plugin extends pytest by adding an option to run tests in
isolated forked subprocesses. This is useful if you have tests involving C or
C++ libraries that might crash the process. To use the plugin, simply use the
---forked argument when invoking py.test.}
+--forked argument when invoking pytest.}
%description %_description
-%package -n python3-%{pypi_name}
+%package -n python3-pytest-forked
Summary: %{summary}
-%{?python_provide:%python_provide python3-%{pypi_name}}
-%description -n python3-%{pypi_name} %_description
+%description -n python3-pytest-forked %_description
%prep
%autosetup -n %{pypi_name}-%{version} -p1
@@ -43,17 +36,19 @@ Summary: %{summary}
%install
%pyproject_install
+%pyproject_save_files -l pytest_forked
%check
%pytest
-%files -n python3-%{pypi_name}
+%files -n python3-pytest-forked -f %{pyproject_files}
%doc example/boxed.txt README.rst
-%license LICENSE
-%{python3_sitelib}/pytest_forked*
%changelog
+* Mon Aug 10 2026 Scott Talbert <swt@techie.net> - 1.7.5-1
+- Update to new upstream release 1.7.5 (#2512748)
+
* Thu Jul 16 2026 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.0-17
- Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild
diff --git a/sources b/sources
index 4e605af..a3dd1d0 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (pytest-forked-1.6.0.tar.gz) = 28fedc56fd696a4e7cf528034056849eff14094d5e7f0e94c7c477a7e91e42c08988769cf6f40d25fe8823399e552253cde2198121dd6a9e475fb6a8ce358cad
+SHA512 (pytest_forked-1.7.5.tar.gz) = 0aa6748a24e7e2fb6e4d217e4a0fb8b0a2c9f680a8c7db1dfd168a646ca15c5f303db9be4aa459d02d5686b7cf580b20f73a4ce8911bb9ae2d45ca0450ed63a5
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-08-10 14:45 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-10 14:45 [rpms/python-pytest-forked] rawhide: Update to new upstream release 1.7.5 (#2512748) Scott Talbert
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox