dev-python/pytest-subtests: fix tests if pakcage ...

is not already installed

Package-Manager: Portage-2.3.96, Repoman-2.3.22
Signed-off-by: Andrew Ammerlaan <andrewammerlaan@riseup.net>
This commit is contained in:
Andrew Ammerlaan
2020-04-03 12:29:47 +02:00
parent 508368d91a
commit 0e4e63d376

View File

@@ -32,3 +32,10 @@ python_prepare_all() {
distutils-r1_python_prepare_all
}
python_test() {
# tests fail if package is not installed
# workaround is to add source to PYTHONPATH
PYTHONPATH="${S}"
pytest -vv || die
}