Skip to content

Commit dce2621

Browse files
authored
Add pytest-twisted to list of async def handling plugins
https://github.com/pytest-dev/pytest-twisted/tree/v1.12#ensuredeferred [pytest-twisted](https://github.com/pytest-dev/pytest-twisted) supports `async def` test functions and fixtures as well as `async def`/`yield` fixtures.
1 parent acec0b6 commit dce2621

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/_pytest/python.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,8 @@ def async_warn(nodeid: str) -> None:
166166
)
167167
msg += " - pytest-asyncio\n"
168168
msg += " - pytest-trio\n"
169-
msg += " - pytest-tornasync"
169+
msg += " - pytest-tornasync\n"
170+
msg += " - pytest-twisted"
170171
warnings.warn(PytestUnhandledCoroutineWarning(msg.format(nodeid)))
171172
skip(msg="async def function and no async plugin installed (see warnings)")
172173

0 commit comments

Comments
 (0)