Upstream does not run doctests so we can't expect these to pass.
Closes: https://bugs.gentoo.org/668668
Signed-off-by: Louis Sautier <sbraz@gentoo.org>
Package-Manager: Portage-2.3.51, Repoman-2.3.11
dev-python/sphinx[${PYTHON_USEDEP}]
dev-python/sphinx_rtd_theme[${PYTHON_USEDEP}]
)
- test? (
- ${RDEPEND}
- dev-python/pytest[${PYTHON_USEDEP}]
- )"
+ test? ( ${RDEPEND} )
+"
python_compile_all() {
if use doc; then
}
python_test() {
- # Avoid ImportMismatchError, see https://bugs.gentoo.org/661412
- pytest -vv --doctest-modules "${BUILD_DIR}"/lib/more_itertools \
- || die "tests fail with ${EPYTHON}"
+ "${EPYTHON}" -m unittest discover -v || die "tests fail with ${EPYTHON}"
}