We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 49ddea1 commit f91db08Copy full SHA for f91db08
pytest_asyncio/plugin.py
@@ -639,7 +639,7 @@ def pytest_pyfunc_call(pyfuncitem: Function) -> object | None:
639
where the wrapped test coroutine is executed in an event loop.
640
"""
641
if pyfuncitem.get_closest_marker("asyncio") is not None:
642
- if isinstance(pyfuncitem, PytestAsyncioFunction):
+ if is_async_test(pyfuncitem):
643
asyncio_mode = _get_asyncio_mode(pyfuncitem.config)
644
for fixname, fixtures in pyfuncitem._fixtureinfo.name2fixturedefs.items():
645
# name2fixturedefs is a dict between fixture name and a list of matching
0 commit comments