summaryrefslogtreecommitdiff
path: root/dev-python/pytest-asyncio
diff options
context:
space:
mode:
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
}