From 9ac03f0d5a1a2f7a9a0656fe7cd27ef2588da784 Mon Sep 17 00:00:00 2001 From: Crucible Date: Wed, 30 Sep 2026 19:07:39 -0500 Subject: Publish srcux candidate 0000000528-20260930-190542 --- dev-python/coverage/coverage-7.16.2.ebuild | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) (limited to 'dev-python/coverage') diff --git a/dev-python/coverage/coverage-7.16.2.ebuild b/dev-python/coverage/coverage-7.16.2.ebuild index bb83b5e46e2e..e06d7b973915 100644 --- a/dev-python/coverage/coverage-7.16.2.ebuild +++ b/dev-python/coverage/coverage-7.16.2.ebuild @@ -6,6 +6,7 @@ EAPI=8 DISTUTILS_EXT=1 DISTUTILS_USE_PEP517=setuptools PYPI_VERIFY_REPO=https://github.com/coveragepy/coveragepy +PYTHON_FULLY_TESTED=( python3_{12..15} python3_{14,15}t ) PYTHON_COMPAT=( python3_{13..14} ) PYTHON_REQ_USE="threads(+),sqlite(+)" @@ -26,10 +27,13 @@ IUSE="+native-extensions" BDEPEND=" test? ( >=dev-python/unittest-mixins-1.4[${PYTHON_USEDEP}] + $(python_gen_cond_dep ' + dev-python/hypothesis[${PYTHON_USEDEP}] + ' "${PYTHON_FULLY_TESTED[@]}") ) " -EPYTEST_PLUGINS=( hypothesis pytest-{rerunfailures,xdist} ) +EPYTEST_PLUGINS=( pytest-{rerunfailures,xdist} ) EPYTEST_XDIST=1 distutils_enable_tests pytest @@ -59,6 +63,11 @@ test_tracer() { } python_test() { + local EPYTEST_PLUGINS=( "${EPYTEST_PLUGINS[@]}" ) + if has_version "dev-python/hypothesis[${PYTHON_USEDEP}]"; then + EPYTEST_PLUGINS+=( hypothesis ) + fi + local EPYTEST_DESELECT=( # broken because of pytest plugins explicity loaded tests/test_debug.py::ShortStackTest::test_short_stack{,_skip} @@ -99,8 +108,10 @@ python_test() { test_tracer pytrace "${xdist_args[@]}" - # available since Python 3.12 - test_tracer sysmon "${xdist_args[@]}" + # available since CPython 3.12 + if [[ ${EPYTHON} == python* ]]; then + test_tracer sysmon "${xdist_args[@]}" + fi if [[ -n ${c_ext} ]]; then rm coverage/*.so || die -- cgit v1.3