Only run Python 2 tests %{with python2}

This commit is contained in:
Miro Hrončok 2019-08-27 11:13:16 +02:00
parent 8081338488
commit 6ce0b995a2

View File

@ -82,7 +82,7 @@ Python 3 version.
%if %{with tests}
%check
%if 0%{?fedora} < 32
%if %{with python2} && 0%{?fedora} < 32
PYTHONPATH=%{buildroot}%{python2_sitelib} py.test-2 -rfsxX test_six.py
%endif
PYTHONPATH=%{buildroot}%{python3_sitelib} py.test-3 -rfsxX test_six.py