Always run at least an import check in %check

This commit is contained in:
Miro Hrončok 2023-10-10 14:13:33 +02:00
parent 85302c38d7
commit a5e331ad3f

View File

@ -75,8 +75,9 @@ sed -i 's/ --doctest-modules//' pyproject.toml
%pyproject_save_files requests %pyproject_save_files requests
%if %{with tests}
%check %check
%pyproject_check_import
%if %{with tests}
# test_use_proxy_from_environment needs pysocks # test_use_proxy_from_environment needs pysocks
%pytest -v %{!?with_extras:-k "not test_use_proxy_from_environment"} %pytest -v %{!?with_extras:-k "not test_use_proxy_from_environment"}
%endif %endif