From 6d0ebda199a98e40f4ff35a1b307aaea94ae2fa3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Fri, 15 Feb 2019 10:19:47 +0100 Subject: [PATCH] Test installed six, not sources --- python-six.spec | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/python-six.spec b/python-six.spec index aba75c5..20c195c 100644 --- a/python-six.spec +++ b/python-six.spec @@ -115,10 +115,9 @@ Python 3 version. %if %{with tests} %check -# Ensure six module is used from the version being build -export PYTHONPATH=. -py.test-2 -rfsxX test_six.py -py.test-3 -rfsxX test_six.py +# Ensure six module is used from the version being installed +PYTHONPATH=%{buildroot}%{python2_sitelib} py.test-2 -rfsxX test_six.py +PYTHONPATH=%{buildroot}%{python3_sitelib} py.test-3 -rfsxX test_six.py %endif