[packages/python-Pyro4] - disable network (DNS, socket) tests by default

qboosh qboosh at pld-linux.org
Sun Feb 14 11:34:31 CET 2021


commit 18cecf8ea8764b7eb1766f6d2d1eaf87d0661b27
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sun Feb 14 11:34:51 2021 +0100

    - disable network (DNS, socket) tests by default

 python-Pyro4.spec | 13 +++++++++----
 1 file changed, 9 insertions(+), 4 deletions(-)
---
diff --git a/python-Pyro4.spec b/python-Pyro4.spec
index 9647f2b..fe2b295 100644
--- a/python-Pyro4.spec
+++ b/python-Pyro4.spec
@@ -1,10 +1,11 @@
 # NOTE: tests spawn >128 processes (ulimit -u 256 is enough)
 #
 # Conditional build:
-%bcond_without	doc	# Sphinx documentation
-%bcond_without	tests	# unit tests
-%bcond_without	python2 # CPython 2.x module
-%bcond_without	python3 # CPython 3.x module
+%bcond_without	doc		# Sphinx documentation
+%bcond_without	tests		# unit tests
+%bcond_with	tests_net	# unit tests requiring network access
+%bcond_without	python2		# CPython 2.x module
+%bcond_without	python3		# CPython 3.x module
 
 %define 	module	Pyro4
 Summary:	Distributed object middleware for Python (RPC)
@@ -91,6 +92,10 @@ Dokumentacja API modułu Pythona Pyro4.
 # selectors2 is preferred over selectors34, update egg dependency accordingly
 %{__sed} -i -e 's/selectors34/selectors2/' setup.py
 
+%if %{without tests_net}
+%{__rm} tests/PyroTests/test_{naming,naming2,socket}.py
+%endif
+
 %build
 %if %{with python2}
 %py_build
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-Pyro4.git/commitdiff/18cecf8ea8764b7eb1766f6d2d1eaf87d0661b27



More information about the pld-cvs-commit mailing list