# deprecated target, but sometimes still used: %{?with_tests:test}
%if %{with tests}
+# use explicit plugins list for reliable builds (delete PYTEST_PLUGINS if empty)
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
+PYTEST_PLUGINS= \
%{__python} -m pytest ...
%endif
%endif
# deprecated target, but sometimes still used: %{?with_tests:test}
%if %{with tests}
+# use explicit plugins list for reliable builds (delete PYTEST_PLUGINS if empty)
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
+PYTEST_PLUGINS= \
%{__python3} -m pytest ...
%endif
%endif
# deprecated target, but sometimes still used: %{?with_tests:test}
%if %{with tests}
+# use explicit plugins list for reliable builds (delete PYTEST_PLUGINS if empty)
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
+PYTEST_PLUGINS= \
%{__python} -m pytest ...
%endif
%endif
# deprecated target, but sometimes still used: %{?with_tests:test}
%if %{with tests}
+# use explicit plugins list for reliable builds (delete PYTEST_PLUGINS if empty)
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
+PYTEST_PLUGINS= \
%{__python3} -m pytest ...
%endif
%endif
# deprecated target, but sometimes still used: %{?with_tests:test}
%if %{with tests}
+# use explicit plugins list for reliable builds (delete PYTEST_PLUGINS if empty)
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
+PYTEST_PLUGINS= \
%{__python3} -m pytest ...
%endif
# deprecated target, but sometimes still used: %{?with_tests:test}
%if %{with tests}
+# use explicit plugins list for reliable builds (delete PYTEST_PLUGINS if empty)
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
+PYTEST_PLUGINS= \
%{__python3} -m pytest tests
%endif