summaryrefslogtreecommitdiff
path: root/dev-python/pytest-asyncio
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2025-07-12 10:35:17 +0200
committerMichał Górny <mgorny@gentoo.org>2025-07-12 10:35:46 +0200
commit3f0db444c15cebf52acaad280857b82bc9230d60 (patch)
treecabaaad4b93eb731003dc884e669ce60d41132a2 /dev-python/pytest-asyncio
parent870c490409602c828e7860d2b43199b28a961819 (diff)
downloadgentoo-3f0db444c15cebf52acaad280857b82bc9230d60.tar.gz
gentoo-3f0db444c15cebf52acaad280857b82bc9230d60.tar.bz2
gentoo-3f0db444c15cebf52acaad280857b82bc9230d60.zip
dev-python/pytest-asyncio: Update deselects, use new pytest vars
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/pytest-asyncio')
-rw-r--r--dev-python/pytest-asyncio/pytest-asyncio-1.0.0.ebuild19
1 files 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
}