Accepting request 817874 from home:bnavigator:branches:devel:languages:python:numeric

- still open: boo#1148173 gh#numpy/numpy#14438 skip two tests
- clean %check section for updated %pytest_arch
  gh#openSUSE/python-rpm-macros#50

OBS-URL: https://build.opensuse.org/request/show/817874
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-numpy?expand=0&rev=66
This commit is contained in:
Tomáš Chvátal
2020-06-30 13:24:12 +00:00
committed by Git OBS Bridge
parent a547fb6adf
commit b78f52f491
2 changed files with 12 additions and 3 deletions

View File

@@ -247,12 +247,14 @@ EOF
%check
%if %{without hpc}
export PYTHONDONTWRITEBYTECODE=1
export PATH="%{buildroot}%{_bindir}:$PATH"
mkdir testing
pushd testing
%python_expand export PYTHONPATH=%{_python_sysconfig_path $python stdlib}:%{$python_sitearch}
%pytest_arch -n auto --pyargs numpy %{buildroot}%{$python_sitearch}/numpy
# boo#1148173 gh#numpy/numpy#14438
%ifarch ppc64 ppc64le
%define skiptest -k "not test_generalized_sq"
%endif
%pytest_arch -n auto --pyargs numpy %{buildroot}%{$python_sitearch}/numpy %{?skiptest}
popd
%endif
%if %{without hpc}