summaryrefslogtreecommitdiff
path: root/dev-python/pytest-mock
diff options
context:
space:
mode:
Diffstat (limited to 'dev-python/pytest-mock')
-rw-r--r--dev-python/pytest-mock/pytest-mock-3.16.0.ebuild19
1 files changed, 4 insertions, 15 deletions
diff --git a/dev-python/pytest-mock/pytest-mock-3.16.0.ebuild b/dev-python/pytest-mock/pytest-mock-3.16.0.ebuild
index c595b138683c..b714251e427e 100644
--- a/dev-python/pytest-mock/pytest-mock-3.16.0.ebuild
+++ b/dev-python/pytest-mock/pytest-mock-3.16.0.ebuild
@@ -5,7 +5,6 @@ EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYPI_VERIFY_REPO=https://github.com/pytest-dev/pytest-mock
-PYTHON_TESTED=( python3_{13..14} )
PYTHON_COMPAT=( python3_{13..14} )
inherit distutils-r1 pypi
@@ -19,29 +18,19 @@ HOMEPAGE="
LICENSE="MIT"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-macos"
-IUSE="test"
-RESTRICT="!test? ( test )"
RDEPEND="
>=dev-python/pytest-6.2.5[${PYTHON_USEDEP}]
"
BDEPEND="
dev-python/setuptools-scm[${PYTHON_USEDEP}]
- test? (
- $(python_gen_cond_dep '
- dev-python/pytest-asyncio[${PYTHON_USEDEP}]
- ' "${PYTHON_TESTED[@]}")
- )
"
-python_test() {
- if ! has "${EPYTHON/./_}" "${PYTHON_TESTED[@]}"; then
- einfo "Skipping tests on ${EPYTHON}"
- return
- fi
+EPYTEST_PLUGINS=( "${PN}" pytest-asyncio )
+EPYTEST_PLUGIN_LOAD_VIA_ENV=1
+distutils_enable_tests pytest
- local EPYTEST_PLUGINS=( "${PN}" pytest-asyncio )
- local EPYTEST_PLUGIN_LOAD_VIA_ENV=1
+python_test() {
local EPYTEST_DESELECT=()
if has_version dev-python/mock; then