commit: 2030768886b1b2bdaa939e36d9790e0ca06d446e Author: Michał Górny <mgorny <AT> gentoo <DOT> org> AuthorDate: Tue Mar 9 08:20:11 2021 +0000 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> CommitDate: Tue Mar 9 08:28:11 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=20307688
dev-python/pychm: Fix tests Closes: https://bugs.gentoo.org/774963 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> dev-python/pychm/pychm-0.8.6.ebuild | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/dev-python/pychm/pychm-0.8.6.ebuild b/dev-python/pychm/pychm-0.8.6.ebuild index 90adc71074b..3957210dc1f 100644 --- a/dev-python/pychm/pychm-0.8.6.ebuild +++ b/dev-python/pychm/pychm-0.8.6.ebuild @@ -1,9 +1,9 @@ -# Copyright 1999-2020 Gentoo Authors +# Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 -PYTHON_COMPAT=( python3_{7,8,9} ) +PYTHON_COMPAT=( python3_{7..9} ) inherit distutils-r1 @@ -19,3 +19,11 @@ RDEPEND="dev-libs/chmlib" DEPEND="${RDEPEND}" distutils_enable_tests pytest + +src_test() { + # need to avoid relative import of 'chm' directory but tests rely + # on locating files relatively via tests/... + mv tests .. || die + cd .. || die + distutils-r1_src_test +}
