commit: 0168114f8343530be3e879828eb6fa559aa8f936 Author: Michał Górny <mgorny <AT> gentoo <DOT> org> AuthorDate: Mon Mar 25 18:47:39 2024 +0000 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> CommitDate: Mon Apr 1 09:36:33 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0168114f
distutils-r1.eclass: Fix `det unittest` with 3.12 only Closes: https://bugs.gentoo.org/926964 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> eclass/distutils-r1.eclass | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/eclass/distutils-r1.eclass b/eclass/distutils-r1.eclass index a1617999a037..22b28e915859 100644 --- a/eclass/distutils-r1.eclass +++ b/eclass/distutils-r1.eclass @@ -628,11 +628,11 @@ distutils_enable_tests() { ;; unittest) # unittest-or-fail is needed in py<3.12 - test_deps+=" - $(python_gen_cond_dep ' + local test_pkgs="$(python_gen_cond_dep ' dev-python/unittest-or-fail[${PYTHON_USEDEP}] - ' 3.10 3.11) - " + ' 3.10 3.11 + )" + [[ -n ${test_pkgs} ]] && test_deps+=" ${test_pkgs}" ;; *) die "${FUNCNAME}: unsupported argument: ${1}"