Better organization of skipped tests.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-numpy?expand=0&rev=62
This commit is contained in:
Matej Cepl 2020-05-13 09:18:22 +00:00 committed by Git OBS Bridge
parent 42f5627d37
commit fee81c867f

View File

@ -251,12 +251,12 @@ export PYTHONDONTWRITEBYTECODE=1
export PATH="%{buildroot}%{_bindir}:$PATH"
mkdir testing
pushd testing
%ifarch ppc64 ppc64le
%pytest_arch -n auto --pyargs numpy || echo "Warning: ignore check error for PowerPC bypass boo#1148173"
%else
SKIP_TESTS=""
%ifarch %{ix86}
# gh#numpy/numpy#16212
%pytest_arch -n auto --pyargs numpy -k 'not (test_big_arrays or test_empty_npz or test_savez_filename_clashes)'
SKIP_TESTS+="not (test_big_arrays or test_empty_npz or test_savez_filename_clashes)"
%endif
%pytest_arch -n auto --pyargs numpy -k "$SKIP_TESTS"
popd
%endif