commit:     d83f0b5ee52fc84855084b72e21fd75cb09520df
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Thu Jun 26 12:17:06 2025 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Thu Jun 26 18:43:38 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d83f0b5e

dev-python/betterproto: Use EPYTEST_PLUGINS

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/betterproto/betterproto-2.0.0_beta7.ebuild | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/dev-python/betterproto/betterproto-2.0.0_beta7.ebuild 
b/dev-python/betterproto/betterproto-2.0.0_beta7.ebuild
index 3c4f738b1694..138ac9a216bf 100644
--- a/dev-python/betterproto/betterproto-2.0.0_beta7.ebuild
+++ b/dev-python/betterproto/betterproto-2.0.0_beta7.ebuild
@@ -49,12 +49,10 @@ BDEPEND="
                dev-python/cachelib[${PYTHON_USEDEP}]
                dev-python/pydantic[${PYTHON_USEDEP}]
                dev-python/tomlkit[${PYTHON_USEDEP}]
-               dev-python/pytest-asyncio[${PYTHON_USEDEP}]
-               dev-python/pytest-forked[${PYTHON_USEDEP}]
-               dev-python/pytest-mock[${PYTHON_USEDEP}]
        )
 "
 
+EPYTEST_PLUGINS=( pytest-{asyncio,forked,mock} )
 distutils_enable_tests pytest
 
 PATCHES=(
@@ -69,8 +67,7 @@ python_test() {
                "tests/test_inputs.py::test_binary_compatibility[mapmessage]"
        )
 
-       local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
        # --forked to workaround protobuf segfaults
        # https://github.com/protocolbuffers/protobuf/issues/22067
-       epytest -p asyncio -p pytest_mock -p pytest_forked --forked
+       epytest --forked
 }

Reply via email to