]> git.pld-linux.org Git - packages/python-cssutils.git/commitdiff
- disable network related tests by default; release 2 auto/th/python-cssutils-1.0.2-2
authorJakub Bogusz <qboosh@pld-linux.org>
Tue, 4 Jul 2017 19:00:37 +0000 (21:00 +0200)
committerJakub Bogusz <qboosh@pld-linux.org>
Tue, 4 Jul 2017 19:00:37 +0000 (21:00 +0200)
python-cssutils.spec

index 28acd4f53576ee7bfd8f520b84c0fd51cc63ca38..ece403d8b6f8035cbeefafbc9de1040a470ab271 100644 (file)
@@ -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
This page took 0.121206 seconds and 4 git commands to generate.