Run tests against installed packages.

epel8
Tom Prince 8 years ago
parent ed6f581e4e
commit 62f83b51af

@ -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

Loading…
Cancel
Save