diff --git a/python-six.spec b/python-six.spec index 05b77ef..0de5f0f 100644 --- a/python-six.spec +++ b/python-six.spec @@ -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