[packages/python3-flasgger] - disable test_example.py due to unreadable resolv.conf on builders
qboosh
qboosh at pld-linux.org
Wed Dec 31 23:36:42 CET 2025
commit 5652ba76a08ecd5b8657f043ee2019ece2b7a6da
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Wed Dec 31 23:37:16 2025 +0100
- disable test_example.py due to unreadable resolv.conf on builders
python3-flasgger.spec | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/python3-flasgger.spec b/python3-flasgger.spec
index 5a2944e..f6a058b 100644
--- a/python3-flasgger.spec
+++ b/python3-flasgger.spec
@@ -60,9 +60,10 @@ interakcje z zasobami swojego API.
%py3_build
%if %{with tests}
+# test_example.py requires readable resolv.conf to collect
PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
PYTHONPATH=$(pwd):$(pwd)/etc/flasgger_package \
-%{__python3} -m pytest tests
+%{__python3} -m pytest tests --ignore tests/test_example.py
%endif
%install
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python3-flasgger.git/commitdiff/5652ba76a08ecd5b8657f043ee2019ece2b7a6da
More information about the pld-cvs-commit
mailing list