summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLouis Sautier <sbraz@gentoo.org>2018-10-18 00:49:05 +0200
committerLouis Sautier <sbraz@gentoo.org>2018-10-18 00:51:29 +0200
commit8a061142d89bfd3b848f86de1eba60f5f1357788 (patch)
tree303a5f0e9fdb0f740a83790f1003a53d0e35177e /dev-python/more-itertools
parentdev-python/denonavr: remove old (diff)
downloadgentoo-8a061142d89bfd3b848f86de1eba60f5f1357788.tar.gz
gentoo-8a061142d89bfd3b848f86de1eba60f5f1357788.tar.bz2
gentoo-8a061142d89bfd3b848f86de1eba60f5f1357788.zip
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 <sbraz@gentoo.org> Package-Manager: Portage-2.3.51, Repoman-2.3.11
Diffstat (limited to 'dev-python/more-itertools')
-rw-r--r--dev-python/more-itertools/more-itertools-4.3.0.ebuild10
1 files changed, 3 insertions, 7 deletions
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}"
}