commit:     9cae3e60b33d7afa6c79f40b091fc06f7626b253
Author:     Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net>
AuthorDate: Mon Jun 15 11:16:53 2020 +0000
Commit:     Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net>
CommitDate: Mon Jun 15 11:16:53 2020 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=9cae3e60

dev-python/trio: fix test

Package-Manager: Portage-2.3.101, Repoman-2.3.22
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> riseup.net>

 dev-python/trio/trio-0.16.0.ebuild | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/dev-python/trio/trio-0.16.0.ebuild 
b/dev-python/trio/trio-0.16.0.ebuild
index 5d90aec..f3ca2d4 100644
--- a/dev-python/trio/trio-0.16.0.ebuild
+++ b/dev-python/trio/trio-0.16.0.ebuild
@@ -61,3 +61,10 @@ python_prepare_all() {
 
        distutils-r1_python_prepare_all
 }
+
+python_test() {
+       # tests fail if package is already installed without this
+       PYTHONPATH="${S}"
+       cd "${S}" || die
+       pytest -vv || die "Tests fail with ${EPYTHON}"
+}

Reply via email to