Update :class:pytest.PytestUnhandledCoroutineWarning to a deprecation; it will raise an error in pytest 8. [SQUASH] (#10012)

Co-authored-by: Bruno Oliveira <nicoddemus@gmail.com>
This commit is contained in:
Thomas Grainger
2022-08-08 10:14:49 +01:00
committed by GitHub
parent f43ddd8acd
commit 58cf20edf0
2 changed files with 2 additions and 2 deletions

View File

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