commit:     914c03952494a5a8d3d2cbe01d95ec3c02d47d94
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Tue Jul 15 05:02:06 2025 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Fri Jul 18 04:39:08 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=914c0395

dev-python/pytest-asyncio: Simplify EPYTEST_PLUGINS

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
Part-of: https://github.com/gentoo/gentoo/pull/43007
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/pytest-asyncio/pytest-asyncio-1.1.0.ebuild | 19 +++++++------------
 1 file changed, 7 insertions(+), 12 deletions(-)

diff --git a/dev-python/pytest-asyncio/pytest-asyncio-1.1.0.ebuild 
b/dev-python/pytest-asyncio/pytest-asyncio-1.1.0.ebuild
index c9499434f2e4..059598ea6915 100644
--- a/dev-python/pytest-asyncio/pytest-asyncio-1.1.0.ebuild
+++ b/dev-python/pytest-asyncio/pytest-asyncio-1.1.0.ebuild
@@ -25,19 +25,14 @@ BDEPEND="
        dev-python/setuptools-scm[${PYTHON_USEDEP}]
 "
 
-EPYTEST_PLUGINS=( hypothesis )
+EPYTEST_PLUGINS=( hypothesis "${PN}" )
 EPYTEST_PLUGIN_LOAD_VIA_ENV=1
 EPYTEST_XDIST=1
 distutils_enable_tests pytest
 
-python_test() {
-       local EPYTEST_DESELECT=(
-               # fail due to mismatched warning count
-               
tests/test_event_loop_fixture.py::test_closing_event_loop_in_sync_fixture_teardown_raises_warning
-               
tests/test_event_loop_fixture.py::test_event_loop_fixture_asyncgen_error
-               
tests/test_event_loop_fixture.py::test_event_loop_fixture_handles_unclosed_async_gen
-       )
-
-       local EPYTEST_PLUGINS=( "${EPYTEST_PLUGINS[@]}" pytest-asyncio )
-       epytest
-}
+EPYTEST_DESELECT=(
+       # fail due to mismatched warning count
+       
tests/test_event_loop_fixture.py::test_closing_event_loop_in_sync_fixture_teardown_raises_warning
+       tests/test_event_loop_fixture.py::test_event_loop_fixture_asyncgen_error
+       
tests/test_event_loop_fixture.py::test_event_loop_fixture_handles_unclosed_async_gen
+)

Reply via email to