commit: 3f0db444c15cebf52acaad280857b82bc9230d60
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sat Jul 12 08:35:17 2025 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat Jul 12 08:35:46 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3f0db444
dev-python/pytest-asyncio: Update deselects, use new pytest vars
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
dev-python/pytest-asyncio/pytest-asyncio-1.0.0.ebuild | 19 +++++++++----------
1 file changed, 9 insertions(+), 10 deletions(-)
diff --git a/dev-python/pytest-asyncio/pytest-asyncio-1.0.0.ebuild
b/dev-python/pytest-asyncio/pytest-asyncio-1.0.0.ebuild
index fb26ca6f4e86..e13b74ea78c3 100644
--- a/dev-python/pytest-asyncio/pytest-asyncio-1.0.0.ebuild
+++ b/dev-python/pytest-asyncio/pytest-asyncio-1.0.0.ebuild
@@ -23,27 +23,26 @@ RDEPEND="
"
BDEPEND="
dev-python/setuptools-scm[${PYTHON_USEDEP}]
- test? (
- >=dev-python/hypothesis-5.7.1[${PYTHON_USEDEP}]
- )
"
+EPYTEST_PLUGINS=( hypothesis )
+EPYTEST_PLUGIN_LOAD_VIA_ENV=1
EPYTEST_XDIST=1
distutils_enable_tests pytest
python_test() {
local EPYTEST_DESELECT=(
- # rely on precise warning counts
-
tests/hypothesis/test_base.py::test_can_use_explicit_event_loop_fixture
-
tests/modes/test_strict_mode.py::test_strict_mode_ignores_unmarked_fixture
+ # fail due to mismatched warning count
tests/test_event_loop_fixture.py::test_event_loop_already_closed
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
-
tests/test_event_loop_fixture_finalizer.py::test_event_loop_fixture_finalizer_raises_warning_when_fixture_leaves_loop_unclosed
-
tests/test_event_loop_fixture_finalizer.py::test_event_loop_fixture_finalizer_raises_warning_when_test_leaves_loop_unclosed
+
tests/modes/test_strict_mode.py::test_strict_mode_marked_test_unmarked_fixture_warning
+
tests/modes/test_strict_mode.py::test_strict_mode_marked_test_unmarked_autouse_fixture_warning
+ # TODO
+
tests/modes/test_strict_mode.py::test_strict_mode_ignores_unmarked_coroutine
+
tests/modes/test_strict_mode.py::test_strict_mode_ignores_unmarked_fixture
)
- local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
- local -x PYTEST_PLUGINS=pytest_asyncio.plugin,_hypothesis_pytestplugin
+ local EPYTEST_PLUGINS=( "${EPYTEST_PLUGINS[@]}" pytest-asyncio )
epytest
}