[packages/python-pytools] - adjusted py.test invocation to work with py.test 2.x/3.0.x

qboosh qboosh at pld-linux.org
Sat Mar 18 07:49:55 CET 2017


commit 4e0889b60c4c93fcd9e08c2d3a48384c3e7f48e4
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sat Mar 18 07:52:08 2017 +0100

    - adjusted py.test invocation to work with py.test 2.x/3.0.x

 python-pytools.spec | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/python-pytools.spec b/python-pytools.spec
index 3618d6c..6133bb6 100644
--- a/python-pytools.spec
+++ b/python-pytools.spec
@@ -84,13 +84,13 @@ mało interesująca.
 %if %{with python2}
 %py_build
 
-%{?with_tests:PYTHONPATH=. py.test-%{py_ver} test}
+%{?with_tests:PYTHONPATH=$(pwd) %{__python} -m pytest test}
 %endif
 
 %if %{with python3}
 %py3_build
 
-%{?with_tests:PYTHONPATH=. py.test-%{py3_ver} test}
+%{?with_tests:PYTHONPATH=$(pwd) %{__python3} -m pytest test}
 %endif
 
 %install
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-pytools.git/commitdiff/4e0889b60c4c93fcd9e08c2d3a48384c3e7f48e4



More information about the pld-cvs-commit mailing list