Merge pull request #6860 from pytest-dev/pytest_twisted_in_async_warning

Add pytest-twisted to list of async def handling plugins
This commit is contained in:
Bruno Oliveira 2020-03-04 21:48:20 -03:00 committed by GitHub
commit 333bb0883a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -166,7 +166,8 @@ def async_warn(nodeid: str) -> None:
)
msg += " - pytest-asyncio\n"
msg += " - pytest-trio\n"
msg += " - pytest-tornasync"
msg += " - pytest-tornasync\n"
msg += " - pytest-twisted"
warnings.warn(PytestUnhandledCoroutineWarning(msg.format(nodeid)))
skip(msg="async def function and no async plugin installed (see warnings)")