diff options
author | Michał Górny <mgorny@gentoo.org> | 2024-03-25 19:47:39 +0100 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2024-04-01 11:36:33 +0200 |
commit | 0168114f8343530be3e879828eb6fa559aa8f936 (patch) | |
tree | 0212b51826d1a21c86da24748c2175af3f40f96c /eclass | |
parent | distutils-r1.eclass: Refactor `distutils_enable_tests pytest` (diff) | |
download | gentoo-0168114f8343530be3e879828eb6fa559aa8f936.tar.gz gentoo-0168114f8343530be3e879828eb6fa559aa8f936.tar.bz2 gentoo-0168114f8343530be3e879828eb6fa559aa8f936.zip |
distutils-r1.eclass: Fix `det unittest` with 3.12 only
Closes: https://bugs.gentoo.org/926964
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/distutils-r1.eclass | 8 |
1 files 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}" |