From be9aa9d6fdc1da5f664ead6408781808cd35efe3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Date: Thu, 12 May 2022 16:04:56 +0200 Subject: [PATCH] dev-python/pytest-subtests: Enable py3.11 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michał Górny --- .../pytest-subtests/pytest-subtests-0.7.0.ebuild | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/dev-python/pytest-subtests/pytest-subtests-0.7.0.ebuild b/dev-python/pytest-subtests/pytest-subtests-0.7.0.ebuild index ff8252c2c7b94..025563e964244 100644 --- a/dev-python/pytest-subtests/pytest-subtests-0.7.0.ebuild +++ b/dev-python/pytest-subtests/pytest-subtests-0.7.0.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 @@ -27,7 +27,8 @@ BDEPEND=" dev-python/setuptools_scm[${PYTHON_USEDEP}] test? ( dev-python/pytest-xdist[${PYTHON_USEDEP}] - )" + ) +" distutils_enable_tests pytest @@ -36,5 +37,13 @@ export SETUPTOOLS_SCM_PRETEND_VERSION=${PV} python_test() { local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 local -x PYTEST_PLUGINS=xdist.plugin,xdist.looponfail,pytest_forked,pytest_subtests + local EPYTEST_DESELECT=() + [[ ${EPYTHON} == python3.11 ]] && EPYTEST_DESELECT+=( + # broken by output changes + # https://github.com/pytest-dev/pytest-subtests/issues/69 + "tests/test_subtests.py::TestSubTest::test_simple_terminal_normal[unittest]" + "tests/test_subtests.py::TestSubTest::test_simple_terminal_verbose[unittest]" + ) + epytest }