diff --git a/python-beautifulsoup4.spec b/python-beautifulsoup4.spec index 146627d..9d5f4ab 100644 --- a/python-beautifulsoup4.spec +++ b/python-beautifulsoup4.spec @@ -93,12 +93,7 @@ pushd doc && make html && rm build/html/.buildinfo build/html/objects.inv && po %check export LANG=en_US.UTF-8 -%{python_expand export PYTHONPATH="%{buildroot}%{$python_sitelib}" - pushd $PYTHONPATH - py.test-%{$python_bin_suffix} - rm -rf $PYTHONPATH/.pytest_cache - popd -} +%python_expand py.test-%{$python_bin_suffix} %{buildroot}%{$python_sitelib}/bs4/tests %files %{python_files} %license COPYING.txt