From 62f83b51aff57808ad731cbdda7effff072ed927 Mon Sep 17 00:00:00 2001 From: Tom Prince Date: Mon, 17 Oct 2016 16:11:16 -0600 Subject: [PATCH] Run tests against installed packages. --- python-service-identity.spec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python-service-identity.spec b/python-service-identity.spec index 993f552..e920672 100644 --- a/python-service-identity.spec +++ b/python-service-identity.spec @@ -108,13 +108,13 @@ popd # https://bitbucket.org/hpk42/pytest/issue/539/pytest-doctest-modules-fails-if-python echo "collect_ignore = ['build']" >> conftest.py -py.test --doctest-modules --doctest-glob='*.rst' +PYTHONPATH="%{buildroot}/%{python2_sitelib}" py.test --doctest-modules --doctest-glob='*.rst' %if 0%{?with_python3} pushd %{py3dir} # https://bitbucket.org/hpk42/pytest/issue/539/pytest-doctest-modules-fails-if-python echo "collect_ignore = ['build']" >> conftest.py -py.test --doctest-modules --doctest-glob='*.rst' +PYTHONPATH="%{buildroot}/%{python3_sitelib}" py.test --doctest-modules --doctest-glob='*.rst' popd %endif # with_python3 %endif # fedora > 20