[packages/python-six] - disable pytest plugins autoload (fixes tests in presence of some plugins)
qboosh
qboosh at pld-linux.org
Sat Mar 5 10:09:32 CET 2022
commit 1dc0d3696553e34427fba671cec9a2c46d892d3f
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sat Mar 5 10:11:29 2022 +0100
- disable pytest plugins autoload (fixes tests in presence of some plugins)
python-six.spec | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/python-six.spec b/python-six.spec
index 48eca63..82cbcc7 100644
--- a/python-six.spec
+++ b/python-six.spec
@@ -102,6 +102,7 @@ Dokumentacja modułu Pythona six.
%py_build
%if %{with tests}
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
PYTHONPATH=$(pwd) \
%{__python} -m pytest test_six.py
%endif
@@ -111,6 +112,7 @@ PYTHONPATH=$(pwd) \
%py3_build
%if %{with tests}
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
PYTHONPATH=$(pwd) \
%{__python3} -m pytest test_six.py
%endif
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-six.git/commitdiff/1dc0d3696553e34427fba671cec9a2c46d892d3f
More information about the pld-cvs-commit
mailing list