dev-python/hypothesis: Fix installing for tests

Closes: https://bugs.gentoo.org/756853
Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
Michał Górny
2020-11-27 10:20:22 +01:00
parent 17bc6771b4
commit 2d7dff861f
2 changed files with 10 additions and 0 deletions
@@ -48,6 +48,11 @@ python_prepare() {
}
python_test() {
local -x PYTHONPATH="${BUILD_DIR}/install/lib"
esetup.py install \
--root="${BUILD_DIR}/install" \
--install-lib=lib
pytest -vv tests/cover tests/pytest tests/quality \
-n "$(makeopts_jobs "${MAKEOPTS}" "$(get_nproc)")" ||
die "Tests fail with ${EPYTHON}"
@@ -48,6 +48,11 @@ python_prepare() {
}
python_test() {
local -x PYTHONPATH="${BUILD_DIR}/install/lib"
esetup.py install \
--root="${BUILD_DIR}/install" \
--install-lib=lib
pytest -vv tests/cover tests/pytest tests/quality \
-n "$(makeopts_jobs "${MAKEOPTS}" "$(get_nproc)")" ||
die "Tests fail with ${EPYTHON}"