[packages/python3-packaging] - disable pytest plugins

qboosh qboosh at pld-linux.org
Fri Sep 2 17:25:54 CEST 2022


commit dadc4cb0506381dd3ec22be319a9f49043bae5f4
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Fri Sep 2 17:25:59 2022 +0200

    - disable pytest plugins

 python3-packaging.spec | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/python3-packaging.spec b/python3-packaging.spec
index 483cbf8..5f8bfb7 100644
--- a/python3-packaging.spec
+++ b/python3-packaging.spec
@@ -57,7 +57,10 @@ Dokumentacja API biblioteki Pythona packaging.
 %build
 %py3_build
 
-%{?with_tests:%{__python3} -m pytest}
+%if %{with tests}
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
+%{__python3} -m pytest
+%endif
 
 %if %{with doc}
 %{__make} -C docs html \
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python3-packaging.git/commitdiff/dadc4cb0506381dd3ec22be319a9f49043bae5f4



More information about the pld-cvs-commit mailing list