[packages/python-cssutils] - disable network related tests by default; release 2

qboosh qboosh at pld-linux.org
Tue Jul 4 20:59:07 CEST 2017


commit e1cf6bb35791656c2ca4ab7191f83191d6422714
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Tue Jul 4 21:00:37 2017 +0200

    - disable network related tests by default; release 2

 python-cssutils.spec | 14 ++++++++++----
 1 file changed, 10 insertions(+), 4 deletions(-)
---
diff --git a/python-cssutils.spec b/python-cssutils.spec
index 28acd4f..ece403d 100644
--- a/python-cssutils.spec
+++ b/python-cssutils.spec
@@ -1,8 +1,9 @@
 #
 # Conditional build:
-%bcond_without	python2	# CPython 2.x module
-%bcond_without	python3 # CPython 3.x module
-%bcond_without	tests	# unit tests
+%bcond_without	python2		# CPython 2.x module
+%bcond_without	python3		# CPython 3.x module
+%bcond_without	tests		# unit tests
+%bcond_with	tests_net	# unit tests using network
 
 %define		module	cssutils
 %define		encutils_ver 0.9.8
@@ -10,7 +11,7 @@ Summary:	A CSS Cascading Style Sheets library for Python 2
 Summary(pl.UTF-8):	Biblioteka CSS (Cascading Style Sheets) dla Pythona 2
 Name:		python-%{module}
 Version:	1.0.2
-Release:	1
+Release:	2
 Epoch:		1
 License:	LGPL v3+
 Group:		Libraries/Python
@@ -71,6 +72,11 @@ if [ $VERSION != %{encutils_ver} ]; then
 	exit 1
 fi
 
+%if %{without tests_net}
+%{__sed} -i -e 's/def test_parseUrl/def skip_parseUrl/' src/cssutils/tests/test_parse.py
+%{__sed} -i -e 's/def test_handlers/def skip_handlers/' src/cssutils/tests/test_errorhandler.py
+%endif
+
 %build
 %if %{with python2}
 %py_build
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-cssutils.git/commitdiff/e1cf6bb35791656c2ca4ab7191f83191d6422714



More information about the pld-cvs-commit mailing list