]> git.pld-linux.org Git - packages/python3-click.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:49:21 +0000 (07:49 +0100)
committerJakub Bogusz <qboosh@pld-linux.org>
Sat, 18 Mar 2017 06:49:21 +0000 (07:49 +0100)
python-click.spec

index c3f8f64c650f329c64d3aa8e0d855de3d2e44606..c358dd5482d9a82db84e6c660d41065c3b2416dd 100644 (file)
@@ -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
 
This page took 0.165615 seconds and 4 git commands to generate.