commit:     49a1a65d3d5fd2fd9c8562468c5aa99a5050eb36
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Thu Feb 23 14:03:25 2023 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Thu Feb 23 15:14:22 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=49a1a65d

dev-python/pylint-venv: Fix testing prior to installing

Closes: https://bugs.gentoo.org/895968
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/pylint-venv/pylint-venv-3.0.0.ebuild | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/dev-python/pylint-venv/pylint-venv-3.0.0.ebuild 
b/dev-python/pylint-venv/pylint-venv-3.0.0.ebuild
index ad1160f14a79..f90bdef4e3a8 100644
--- a/dev-python/pylint-venv/pylint-venv-3.0.0.ebuild
+++ b/dev-python/pylint-venv/pylint-venv-3.0.0.ebuild
@@ -39,5 +39,8 @@ src_prepare() {
 }
 
 python_test() {
+       # we need to set PYTHONPATH explicitly since the test runs installed
+       # pylint (i.e. starts outside the test venv)
+       local -x PYTHONPATH=${S}:${PYTHONPATH}
        bash test/test.sh || die "Test failed with ${EPYTHON}"
 }

Reply via email to