From 1ff14a8839e351ec88f03f61fb155e4fd697ecd0 Mon Sep 17 00:00:00 2001 From: Michał Górny Date: Tue, 10 May 2022 11:44:55 +0200 Subject: dev-python/flaky: Enable py3.11 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michał Górny --- dev-python/flaky/flaky-3.7.0-r2.ebuild | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/dev-python/flaky/flaky-3.7.0-r2.ebuild b/dev-python/flaky/flaky-3.7.0-r2.ebuild index 0fc2e88f1e60..b5f07b9b77d0 100644 --- a/dev-python/flaky/flaky-3.7.0-r2.ebuild +++ b/dev-python/flaky/flaky-3.7.0-r2.ebuild @@ -4,7 +4,7 @@ EAPI=8 DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( python3_{8..10} pypy3 ) +PYTHON_COMPAT=( python3_{8..11} pypy3 ) inherit distutils-r1 @@ -22,15 +22,21 @@ DEPEND=" test? ( dev-python/genty[${PYTHON_USEDEP}] dev-python/mock[${PYTHON_USEDEP}] - dev-python/nose[${PYTHON_USEDEP}] dev-python/pytest[${PYTHON_USEDEP}] + $(python_gen_cond_dep ' + dev-python/nose[${PYTHON_USEDEP}] + ' python3_{8..10} pypy3) ) " python_test() { - nosetests --with-flaky --exclude="test_nose_options_example" test/test_nose/ || die epytest -k 'example and not options' --doctest-modules test/test_pytest/ || die epytest -p no:flaky test/test_pytest/test_flaky_pytest_plugin.py || die - nosetests --with-flaky --force-flaky --max-runs 2 test/test_nose/test_nose_options_example.py || die epytest --force-flaky --max-runs 2 test/test_pytest/test_pytest_options_example.py || die + + # please keep this in sync with python_gen_cond_dep! + if has "${EPYTHON}" python3_{8..10} pypy3; then + "${EPYTHON}" -m nose --with-flaky --exclude="test_nose_options_example" test/test_nose/ || die + "${EPYTHON}" -m nose --with-flaky --force-flaky --max-runs 2 test/test_nose/test_nose_options_example.py || die + fi } -- cgit v1.2.3-65-gdbad