From: Louis Sautier Date: Wed, 17 Oct 2018 22:49:05 +0000 (+0200) Subject: dev-python/more-itertools: revert to the test method used by upstream X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=8a061142d89bfd3b848f86de1eba60f5f1357788;p=gentoo.git dev-python/more-itertools: revert to the test method used by upstream Upstream does not run doctests so we can't expect these to pass. Closes: https://bugs.gentoo.org/668668 Signed-off-by: Louis Sautier Package-Manager: Portage-2.3.51, Repoman-2.3.11 --- diff --git a/dev-python/more-itertools/more-itertools-4.3.0.ebuild b/dev-python/more-itertools/more-itertools-4.3.0.ebuild index 4601046596e2..0b78adf9d36a 100644 --- a/dev-python/more-itertools/more-itertools-4.3.0.ebuild +++ b/dev-python/more-itertools/more-itertools-4.3.0.ebuild @@ -23,10 +23,8 @@ DEPEND=" 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 @@ -36,7 +34,5 @@ python_compile_all() { } 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}" }