]> git.pld-linux.org Git - packages/python-pytools.git/commitdiff
- adjusted py.test invocation to work with py.test 2.x/3.0.x
authorJakub Bogusz <qboosh@pld-linux.org>
Sat, 18 Mar 2017 06:52:08 +0000 (07:52 +0100)
committerJakub Bogusz <qboosh@pld-linux.org>
Sat, 18 Mar 2017 06:52:08 +0000 (07:52 +0100)
python-pytools.spec

index 3618d6cf68ec7f2eafbec01a90b9ce3e1e81d84b..6133bb68ce2dfc95e2092fcbee45eea17e7186c5 100644 (file)
@@ -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
This page took 0.170716 seconds and 4 git commands to generate.