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