mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-24 06:48:18 -07:00
dev-python/aiodns: migrate from manual plugin handling to EPYTEST_PLUGINS
Signed-off-by: Eli Schwartz <eschwartz@gentoo.org>
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user