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