forked from pool/python-beautifulsoup4
KISS principle: py.test allows us to run tests without changing $PWD
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-beautifulsoup4?expand=0&rev=59
This commit is contained in:
parent
d8bbb2f1f7
commit
8b80d9504b
@ -93,12 +93,7 @@ pushd doc && make html && rm build/html/.buildinfo build/html/objects.inv && po
|
|||||||
|
|
||||||
%check
|
%check
|
||||||
export LANG=en_US.UTF-8
|
export LANG=en_US.UTF-8
|
||||||
%{python_expand export PYTHONPATH="%{buildroot}%{$python_sitelib}"
|
%python_expand py.test-%{$python_bin_suffix} %{buildroot}%{$python_sitelib}/bs4/tests
|
||||||
pushd $PYTHONPATH
|
|
||||||
py.test-%{$python_bin_suffix}
|
|
||||||
rm -rf $PYTHONPATH/.pytest_cache
|
|
||||||
popd
|
|
||||||
}
|
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%license COPYING.txt
|
%license COPYING.txt
|
||||||
|
Loading…
Reference in New Issue
Block a user