diff --git a/python-packaging.spec b/python-packaging.spec index 64c4171..be4d504 100644 --- a/python-packaging.spec +++ b/python-packaging.spec @@ -114,8 +114,9 @@ echo '%{python3_sitelib}/packaging*' > %{pyproject_files} %endif -%if %{with tests} %check +%pyproject_check_import +%if %{with tests} %pytest %endif