MCPcopy
hub / github.com/pytest-dev/pytest / async_fail

Function async_fail

src/_pytest/python.py:147–157  ·  view source on GitHub ↗
(nodeid: str)

Source from the content-addressed store, hash-verified

145
146
147def async_fail(nodeid: str) -> None:
148 msg = (
149 "async def functions are not natively supported.\n"
150 "You need to install a suitable plugin for your async framework, for example:\n"
151 " - anyio\n"
152 " - pytest-asyncio\n"
153 " - pytest-tornasync\n"
154 " - pytest-trio\n"
155 " - pytest-twisted"
156 )
157 fail(msg, pytrace=False)
158
159
160@hookimpl(trylast=True)

Callers 1

pytest_pyfunc_callFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected