diff options
author | Michał Górny <mgorny@gentoo.org> | 2022-05-10 11:44:55 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2022-05-10 12:06:54 +0200 |
commit | 1ff14a8839e351ec88f03f61fb155e4fd697ecd0 (patch) | |
tree | 419468812374095ff3926f26049e9737849ceee1 /dev-python/flaky | |
parent | dev-python/nose: EAPI 8, PEP517 (diff) | |
download | gentoo-1ff14a8839e351ec88f03f61fb155e4fd697ecd0.tar.gz gentoo-1ff14a8839e351ec88f03f61fb155e4fd697ecd0.tar.bz2 gentoo-1ff14a8839e351ec88f03f61fb155e4fd697ecd0.zip |
dev-python/flaky: Enable py3.11
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/flaky')
-rw-r--r-- | dev-python/flaky/flaky-3.7.0-r2.ebuild | 14 |
1 files 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 } |