Use pytest-forked to run tests
This commit is contained in:
parent
0ceb97925f
commit
8882033808
1 changed files with 3 additions and 1 deletions
|
|
@ -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
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue