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.
This commit is contained in:
parent
bf2f2311a1
commit
a36526471b
@ -191,13 +191,13 @@ export k="not test_denormals"
|
|||||||
export PYTHONDONTWRITEBYTECODE=1
|
export PYTHONDONTWRITEBYTECODE=1
|
||||||
|
|
||||||
pushd %{buildroot}/%{python3_sitearch}
|
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
|
# Remove test remnants
|
||||||
rm -rf gram{A,B}
|
rm -rf gram{A,B}
|
||||||
popd
|
popd
|
||||||
|
|
||||||
pushd %{buildroot}/%{python2_sitearch}
|
pushd %{buildroot}/%{python2_sitearch}
|
||||||
py.test-2 -k "$k" scipy
|
%{__python2} -m pytest -k "$k" scipy
|
||||||
# Remove test remnants
|
# Remove test remnants
|
||||||
rm -f gram{A,B}
|
rm -f gram{A,B}
|
||||||
popd
|
popd
|
||||||
@ -228,6 +228,8 @@ popd
|
|||||||
%changelog
|
%changelog
|
||||||
* Tue Jul 30 2019 Petr Viktorin <pviktori@redhat.com> - 1.2.1-6
|
* Tue Jul 30 2019 Petr Viktorin <pviktori@redhat.com> - 1.2.1-6
|
||||||
- Remove build dependency on python2-pytest-xdist and python2-pytest-timeout
|
- 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 <releng@fedoraproject.org> - 1.2.1-5
|
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.1-5
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
||||||
|
Loading…
Reference in New Issue
Block a user