diff --git a/python-sphinxcontrib-websupport.spec b/python-sphinxcontrib-websupport.spec index 8ae0e70..2d11137 100644 --- a/python-sphinxcontrib-websupport.spec +++ b/python-sphinxcontrib-websupport.spec @@ -50,7 +50,11 @@ rm -rf %{pypi_name}.egg-info %py3_install %check -%{__python3} -m pytest tests/ +mkdir empty && pushd empty # don't run the tests from sources +export PYTHONPATH=%{buildroot}%{python3_sitelib} +%{__python3} -m pytest ../tests +popd +rmdir empty %files -n python3-%{pypi_name} %license LICENSE