diff --git a/pythran.spec b/pythran.spec index f20725c..abe3bd0 100644 --- a/pythran.spec +++ b/pythran.spec @@ -49,15 +49,8 @@ BuildRequires: python3-scipy # these packages are not included in RHEL %if %{undefined rhel} -# Running tests in serial makes memory errors, which occur in some tests on -# 32-bit architectures, more reproducible, and makes the output when they occur -# less confusing: we tend to get individual test failures rather than a pytest -# INTERNALERROR. -%if 0%{?__isa_bits} != 32 # this is used for supporting -n auto in %%pytest BuildRequires: python3-pytest-xdist -%global use_pytest_xdist 1 -%endif # this is only used to test integration with ipython BuildRequires: /usr/bin/ipython %endif @@ -155,6 +148,14 @@ k="$k and not test_setup_bdist_install3" k="$k and not test_setup_build3" k="$k and not test_setup_sdist_install3" +# Don’t run tests in parallel on 32-bit architecutres. RRunning tests in serial +# makes memory errors, which occur in some tests on 32-bit architectures, more +# reproducible, and makes the output when they occur less confusing: we tend to +# get individual test failures rather than a pytest INTERNALERROR. +%if %{undefined rhel} && 0%{?__isa_bits} != 32 +%global use_pytest_xdist 1 +%endif + %pytest %{?use_pytest_xdist:-n auto} -k "$k"