Matej Cepl 2018-10-17 15:28:45 +00:00 committed by Git OBS Bridge
parent 2135b5caf7
commit b8ddb5dcdb

View File

@ -65,13 +65,14 @@ export CFLAGS="%{optflags}"
%check
# https://bitbucket.org/cffi/cffi/issues/390/
%{python_expand PYTHONPATH=%{buildroot}%{$python_sitearch}
%{python_expand export PYTHONPATH=%{buildroot}%{$python_sitearch}
py.test-%$python_bin_suffix -k test_dlopen_filename -W ignore::UserWarning c/ testing/
echo "Testing test_cos_01.py"
%python_exec test_cos_01.py
echo "Testing test_cos_02.py"
%python_exec test_cos_02.py
}
export PYTHONPATH=%{buildroot}%{python2_sitearch}
echo "Testing test_cos_01.py"
python2 test_cos_01.py
echo "Testing test_cos_02.py"
python2 test_cos_02.py
%files %{python_files}
%license LICENSE