Add BR: python3-pytest and really use pytest

This commit is contained in:
Sérgio M. Basto 2019-10-22 02:10:46 +01:00
commit 5b9bf2c912

View file

@ -37,6 +37,7 @@ BuildRequires: python2-pytest
%if %{with python3}
BuildRequires: python%{python3_pkgversion}-devel
BuildRequires: python%{python3_pkgversion}-setuptools
BuildRequires: python3-pytest
%endif
%description
@ -118,10 +119,10 @@ popd
%check
%if %{with python2}
%{__python2} setup.py test
%{__python2} -m pytest
%endif
%if %{with python3}
#{__python3} setup.py test
%{__python3} -m pytest
%endif