commit 3781ce049e41a18bd41cb79bbe8c5676493ab443 Author: Jakub Bogusz <qbo...@pld-linux.org> Date: Tue May 27 21:32:10 2025 +0200
- disable pytest plugins, enable tests python-attrs.spec | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) --- diff --git a/python-attrs.spec b/python-attrs.spec index 7ac9feb..1411a06 100644 --- a/python-attrs.spec +++ b/python-attrs.spec @@ -1,7 +1,7 @@ # # Conditional build: %bcond_without doc # Sphinx documentation -%bcond_with tests # unit tests (TODO: re-enable when proper pytest is available in PLD) +%bcond_without tests # unit tests %bcond_without python2 # CPython 2.x module %bcond_with python3 # CPython 3.x module (built from python3-attrs.spec) @@ -98,6 +98,7 @@ Dokumentacja API moduĊu Pythona attrs. %py_build %if %{with tests} +PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \ PYTHONPATH=$(pwd)/src \ %{__python} -m pytest tests %endif @@ -107,6 +108,7 @@ PYTHONPATH=$(pwd)/src \ %py3_build %if %{with tests} +PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \ PYTHONPATH=$(pwd)/src \ %{__python3} -m pytest tests %endif ================================================================ ---- gitweb: http://git.pld-linux.org/gitweb.cgi/packages/python-attrs.git/commitdiff/9294f513fa8496dfa1ce46b02066d04a25659959 _______________________________________________ pld-cvs-commit mailing list pld-cvs-commit@lists.pld-linux.org http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit