From 6ce0b995a22f140ab8520f97a833c3aa42350b80 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Tue, 27 Aug 2019 11:13:16 +0200 Subject: [PATCH] Only run Python 2 tests %{with python2} --- python-six.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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