[packages/python-pyopencl] - adjusted py.test invocation to work with py.test 2.x/3.0.x
qboosh
qboosh at pld-linux.org
Sat Mar 18 08:05:47 CET 2017
commit 604671b3346975a1ef3e2bde4411e09806a827ed
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sat Mar 18 08:08:02 2017 +0100
- adjusted py.test invocation to work with py.test 2.x/3.0.x
python-pyopencl.spec | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/python-pyopencl.spec b/python-pyopencl.spec
index b6ec81c..f984625 100644
--- a/python-pyopencl.spec
+++ b/python-pyopencl.spec
@@ -143,7 +143,7 @@ install -d build-2
%if %{with tests}
PYTHONPATH="$(echo build-2/lib.*):." \
-py.test-%{py_ver} test
+%{__python} -m pytest test
%endif
%if %{with doc}
@@ -165,7 +165,7 @@ install -d build-3
%if %{with tests}
PYTHONPATH="$(echo build-3/lib.*):." \
-py.test-%{py3_ver} test
+%{__python3} -m pytest test
%endif
%{__mv} siteconf.py siteconf-3.py
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-pyopencl.git/commitdiff/604671b3346975a1ef3e2bde4411e09806a827ed
More information about the pld-cvs-commit
mailing list