[packages/python-click] - adjusted py.test invocation to work with py.test 2.x/3.0.x
qboosh
qboosh at pld-linux.org
Sat Mar 18 07:47:07 CET 2017
commit 78c2316cd24a2044f250cb74ab67da585b2fb8cc
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sat Mar 18 07:49:21 2017 +0100
- adjusted py.test invocation to work with py.test 2.x/3.0.x
python-click.spec | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/python-click.spec b/python-click.spec
index c3f8f64..c358dd5 100644
--- a/python-click.spec
+++ b/python-click.spec
@@ -88,14 +88,14 @@ Dokumentacja do modułu Pythona click.
%if %{with python2}
%py_build
%if %{with tests}
-PYTHONPATH=$(pwd) py.test-%{py_ver} tests --tb=long --verbose
+PYTHONPATH=$(pwd) %{__python} -m pytest tests --tb=long --verbose
%endif
%endif
%if %{with python3}
%py3_build
%if %{with tests}
-LC_ALL=C.UTF-8 PYTHONPATH=$(pwd) py.test-%{py3_ver} tests --tb=long --verbose
+LC_ALL=C.UTF-8 PYTHONPATH=$(pwd) %{__python3} -m pytest tests --tb=long --verbose
%endif
%endif
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-click.git/commitdiff/78c2316cd24a2044f250cb74ab67da585b2fb8cc
More information about the pld-cvs-commit
mailing list