diff --git a/python-requests.spec b/python-requests.spec index a95454b..46597f3 100644 --- a/python-requests.spec +++ b/python-requests.spec @@ -75,8 +75,9 @@ sed -i 's/ --doctest-modules//' pyproject.toml %pyproject_save_files requests -%if %{with tests} %check +%pyproject_check_import +%if %{with tests} # test_use_proxy_from_environment needs pysocks %pytest -v %{!?with_extras:-k "not test_use_proxy_from_environment"} %endif