From 88820338088a40042474187f8c7e81f6592b1d7e Mon Sep 17 00:00:00 2001 From: Maxwell G Date: Tue, 4 Jul 2023 19:53:48 +0000 Subject: [PATCH] Use pytest-forked to run tests --- python-orjson.spec | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/python-orjson.spec b/python-orjson.spec index 212005c..f87259e 100644 --- a/python-orjson.spec +++ b/python-orjson.spec @@ -19,6 +19,7 @@ Source: %{pypi_source orjson} Patch: Remove-unstable-simd-feature.patch BuildRequires: python3-devel +BuildRequires: %{py3_dist pytest-forked} BuildRequires: rust-packaging @@ -91,7 +92,8 @@ export RUSTFLAGS='%{build_rustflags}' %check %pyproject_check_import %if %{with tests} -%pytest -vv +# --forked: protect the pytest process against test segfaults +%pytest --forked %endif