diff --git a/python-humanfriendly.spec b/python-humanfriendly.spec index 5c7d541..b94d39d 100644 --- a/python-humanfriendly.spec +++ b/python-humanfriendly.spec @@ -95,7 +95,7 @@ $python -O -m compileall -d %{$python_sitelib} %{buildroot}%{$python_sitelib}/hu %if %{with test} %check -%python_exec setup.py test +%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} py.test-%{$python_version} humanfriendly/tests.py -v %endif %files %{python_files}