Skip to content

Commit 5639a37

Browse files
committed
doc: Updated docstring of pytest_pyfunc_call.
Signed-off-by: Michael Seifert <[email protected]>
1 parent c8981ba commit 5639a37

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pytest_asyncio/plugin.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -153,8 +153,9 @@ async def setup():
153153
@pytest.hookimpl(tryfirst=True, hookwrapper=True)
154154
def pytest_pyfunc_call(pyfuncitem):
155155
"""
156-
Run asyncio marked test functions in an event loop instead of a normal
157-
function call.
156+
Pytest hook called before a test case is run.
157+
158+
Wraps marked tests in a synchronous function where the wrapped test coroutine is executed in an event loop.
158159
"""
159160
if "asyncio" in pyfuncitem.keywords:
160161
if getattr(pyfuncitem.obj, "is_hypothesis_test", False):

0 commit comments

Comments
 (0)