From a36526471b0adf9caf434280bce148e88331a9b0 Mon Sep 17 00:00:00 2001 From: Petr Viktorin Date: Wed, 24 Jul 2019 00:02:39 +0200 Subject: [PATCH] Enable parallel tests in Python 3 %%check Also, use macros for the Python interpreter in tests. `python -m pytest` is more robust than `pytest` in ensuring the tests run with correct interpreter. --- scipy.spec | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scipy.spec b/scipy.spec index 4d1b296..268fe4c 100644 --- a/scipy.spec +++ b/scipy.spec @@ -191,13 +191,13 @@ export k="not test_denormals" export PYTHONDONTWRITEBYTECODE=1 pushd %{buildroot}/%{python3_sitearch} -py.test-3 --timeout=300 -k "$k" scipy +%{__python3} -m pytest --timeout=300 -k "$k" scipy --numprocesses=auto # Remove test remnants rm -rf gram{A,B} popd pushd %{buildroot}/%{python2_sitearch} -py.test-2 -k "$k" scipy +%{__python2} -m pytest -k "$k" scipy # Remove test remnants rm -f gram{A,B} popd @@ -228,6 +228,8 @@ popd %changelog * Tue Jul 30 2019 Petr Viktorin - 1.2.1-6 - Remove build dependency on python2-pytest-xdist and python2-pytest-timeout +- Enable parallel tests in Python 3 %%check +- Use macros for Python interpreter in tests * Fri Jul 26 2019 Fedora Release Engineering - 1.2.1-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild