commit:     bf8a23888c935ac7ca633f7d586b60ea5670f530
Author:     Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net>
AuthorDate: Fri Nov 13 17:00:59 2020 +0000
Commit:     Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
CommitDate: Wed Nov 18 21:35:44 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bf8a2388

dev-python/pytest-xvfb: fix tests

tests do not work at all if the package is
not already installed to the system

Closes: https://bugs.gentoo.org/754270
Package-Manager: Portage-3.0.9, Repoman-3.0.2
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> riseup.net>
Closes: https://github.com/gentoo/gentoo/pull/18246
Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org>

 dev-python/pytest-xvfb/pytest-xvfb-2.0.0.ebuild | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/dev-python/pytest-xvfb/pytest-xvfb-2.0.0.ebuild 
b/dev-python/pytest-xvfb/pytest-xvfb-2.0.0.ebuild
index af48d69b605..ccf3315e933 100644
--- a/dev-python/pytest-xvfb/pytest-xvfb-2.0.0.ebuild
+++ b/dev-python/pytest-xvfb/pytest-xvfb-2.0.0.ebuild
@@ -24,6 +24,10 @@ DEPEND="
 distutils_enable_tests pytest
 
 python_test() {
-       distutils_install_for_testing
-       pytest -vv || die "Tests failed with ${EPYTHON}"
+       local -x PYTHONPATH="${BUILD_DIR}/install/lib"
+       esetup.py install \
+               --root="${BUILD_DIR}/install" \
+               --install-lib=lib
+
+       pytest -vv || die "Tests fail with ${EPYTHON}"
 }

Reply via email to