|
|
@ -108,13 +108,13 @@ popd
|
|
|
|
|
|
|
|
|
|
|
|
# https://bitbucket.org/hpk42/pytest/issue/539/pytest-doctest-modules-fails-if-python
|
|
|
|
# https://bitbucket.org/hpk42/pytest/issue/539/pytest-doctest-modules-fails-if-python
|
|
|
|
echo "collect_ignore = ['build']" >> conftest.py
|
|
|
|
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}
|
|
|
|
%if 0%{?with_python3}
|
|
|
|
pushd %{py3dir}
|
|
|
|
pushd %{py3dir}
|
|
|
|
# https://bitbucket.org/hpk42/pytest/issue/539/pytest-doctest-modules-fails-if-python
|
|
|
|
# https://bitbucket.org/hpk42/pytest/issue/539/pytest-doctest-modules-fails-if-python
|
|
|
|
echo "collect_ignore = ['build']" >> conftest.py
|
|
|
|
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
|
|
|
|
popd
|
|
|
|
%endif # with_python3
|
|
|
|
%endif # with_python3
|
|
|
|
%endif # fedora > 20
|
|
|
|
%endif # fedora > 20
|
|
|
|