dev-python/more-itertools: don't run tests from ${S}

It makes more sense to run tests from the build directory.

Bug: https://bugs.gentoo.org/661412
Package-Manager: Portage-2.3.43, Repoman-2.3.10
This commit is contained in:
Louis Sautier
2018-07-18 00:32:09 +02:00
parent 54a02cb18f
commit 79489db15f

View File

@@ -37,6 +37,7 @@ python_compile_all() {
python_test() {
# Avoid ImportMismatchError, see https://bugs.gentoo.org/661412
PYTHONPATH=. py.test --doctest-modules more_itertools \
cd "${BUILD_DIR}/lib" || die
py.test --doctest-modules more_itertools \
|| die "tests fail with ${EPYTHON}"
}