[packages/python-testscenarios] - tests are passing with fixed testtools packaging (when testtools.tests.helpers are importable)

qboosh qboosh at pld-linux.org
Thu Jul 26 20:27:18 CEST 2018


commit 5eafe5359edb9607169f9b224fde322181dff8f5
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Thu Jul 26 20:29:16 2018 +0200

    - tests are passing with fixed testtools packaging (when testtools.tests.helpers are importable)

 python-testscenarios.spec | 16 ++++++++++------
 1 file changed, 10 insertions(+), 6 deletions(-)
---
diff --git a/python-testscenarios.spec b/python-testscenarios.spec
index 5480d82..5284b73 100644
--- a/python-testscenarios.spec
+++ b/python-testscenarios.spec
@@ -1,4 +1,3 @@
-# TODO: why tests fail with python 2.7?
 #
 # Conditional build:
 %bcond_without	tests	# make check
@@ -12,8 +11,8 @@ Version:	0.5.0
 Release:	3
 License:	Apache v2.0 or BSD
 Group:		Libraries/Python
-#Source0Download: https://pypi.python.org/simple/testscenarios/
-Source0:	https://pypi.python.org/packages/source/t/testscenarios/testscenarios-%{version}.tar.gz
+#Source0Download: https://pypi.org/simple/testscenarios/
+Source0:	https://files.pythonhosted.org/packages/source/t/testscenarios/testscenarios-%{version}.tar.gz
 # Source0-md5:	859073d9e7b049aee2e6704c51f6001a
 URL:		https://launchpad.net/testscenarios
 BuildRequires:	rpm-pythonprov
@@ -81,14 +80,19 @@ pozwala na łatwiejsze testowanie w różnych sytuacjach).
 %if %{with python2}
 %py_build
 
-# tests fail with python 2.x - too old unittest?
-#%{?with_tests:%{__make} check PYTHON=%{__python}}
+%if %{with tests}
+%{__make} check \
+	PYTHON=%{__python}
+%endif
 %endif
 
 %if %{with python3}
 %py3_build
 
-%{?with_tests:%{__make} check PYTHON=%{__python3}}
+%if %{with tests}
+%{__make} check \
+	PYTHON=%{__python3}
+%endif
 %endif
 
 %install
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-testscenarios.git/commitdiff/5eafe5359edb9607169f9b224fde322181dff8f5



More information about the pld-cvs-commit mailing list