diff --git a/python-pytest-shell-utilities.changes b/python-pytest-shell-utilities.changes index f5e84a8..d7eace0 100644 --- a/python-pytest-shell-utilities.changes +++ b/python-pytest-shell-utilities.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Mon Nov 17 09:53:35 UTC 2025 - Daniel Garcia + +- Add patch python314.patch to make tests compatible with python 3.14 + gh#saltstack/pytest-shell-utilities#57 + ------------------------------------------------------------------- Thu Nov 7 13:31:16 UTC 2024 - Pablo Suárez Hernández diff --git a/python-pytest-shell-utilities.spec b/python-pytest-shell-utilities.spec index 2520d74..09d01aa 100644 --- a/python-pytest-shell-utilities.spec +++ b/python-pytest-shell-utilities.spec @@ -32,6 +32,8 @@ Summary: Pytest plugin to simplify running shell commands against the sys License: Apache-2.0 URL: https://github.com/saltstack/pytest-shell-utilities Source: https://files.pythonhosted.org/packages/source/p/pytest-shell-utilities/pytest_shell_utilities-%{version}.tar.gz +# PATCH-FIX-UPSTREAM python314.patch gh#saltstack/pytest-shell-utilities#57 +Patch0: python314.patch BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools >= 50.3.2} BuildRequires: %{python_module setuptools_scm >= 3.4} @@ -64,7 +66,7 @@ BuildArch: noarch Pytest plugin to simplify running shell commands against the system %prep -%setup -q -n pytest_shell_utilities-%{version} +%autosetup -p1 -n pytest_shell_utilities-%{version} %build %pyproject_wheel diff --git a/python314.patch b/python314.patch new file mode 100644 index 0000000..7119c50 --- /dev/null +++ b/python314.patch @@ -0,0 +1,22 @@ +From c8edc1e1060b48de2da5f6c5fa08789b5f1bc783 Mon Sep 17 00:00:00 2001 +From: Daniel Garcia Moreno +Date: Mon, 17 Nov 2025 10:48:36 +0100 +Subject: [PATCH] test: Set start method to "fork" in test_daemon + +Fix https://github.com/saltstack/pytest-shell-utilities/issues/56 +--- + tests/functional/shell/test_daemon.py | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/tests/functional/shell/test_daemon.py b/tests/functional/shell/test_daemon.py +index 8f2f32d..86c1f76 100644 +--- a/tests/functional/shell/test_daemon.py ++++ b/tests/functional/shell/test_daemon.py +@@ -48,6 +48,7 @@ def test_daemon_process_termination(request: FixtureRequest, tempfiles: Tempfile + + import time + import multiprocessing ++ multiprocessing.set_start_method('fork') + + def spin(): + while True: