deprecate returning awaitables

This commit is contained in:
Thomas Grainger 2022-07-29 10:22:44 +01:00
parent b4ab2f0942
commit a7be13b901
No known key found for this signature in database
GPG Key ID: DDA48B5C47FBC8C8
1 changed files with 1 additions and 2 deletions

View File

@ -55,7 +55,6 @@ class PytestRemovedIn8Warning(PytestDeprecationWarning):
__module__ = "pytest" __module__ = "pytest"
@final
class PytestReturnNotNoneWarning(PytestDeprecationWarning): class PytestReturnNotNoneWarning(PytestDeprecationWarning):
"""Warning emitted when a test function is returning value other than None.""" """Warning emitted when a test function is returning value other than None."""
@ -82,7 +81,7 @@ class PytestExperimentalApiWarning(PytestWarning, FutureWarning):
@final @final
class PytestUnhandledCoroutineWarning(PytestWarning): class PytestUnhandledCoroutineWarning(PytestReturnNotNoneWarning):
"""Warning emitted for an unhandled coroutine. """Warning emitted for an unhandled coroutine.
A coroutine was encountered when collecting test functions, but was not A coroutine was encountered when collecting test functions, but was not