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:
parent
f43ddd8acd
commit
58cf20edf0
|
@ -0,0 +1 @@
|
|||
Update :class:`pytest.PytestUnhandledCoroutineWarning` to a deprecation; it will raise an error in pytest 8.
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue