dev-python/aiodns: migrate from manual plugin handling to EPYTEST_PLUGINS

Signed-off-by: Eli Schwartz <eschwartz@gentoo.org>
This commit is contained in:
Eli Schwartz
2025-07-08 10:36:13 -04:00
parent 11043460ee
commit c9c83d4e07

View File

@@ -3,6 +3,7 @@
EAPI=8
EPYTEST_PLUGINS=( pytest-asyncio )
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( pypy3_11 python3_{11..14} )
@@ -23,15 +24,9 @@ RESTRICT="test"
RDEPEND=">=dev-python/pycares-4.9.0[${PYTHON_USEDEP}]"
DEPEND="${RDEPEND}"
BDEPEND="
test? (
dev-python/pytest-asyncio[${PYTHON_USEDEP}]
)
"
distutils_enable_tests pytest
python_test() {
local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
epytest -p asyncio --asyncio-mode=auto
epytest --asyncio-mode=auto
}