Skip to content

Commit

Permalink
deprecate returning awaitables
Browse files Browse the repository at this point in the history
  • Loading branch information
graingert committed Jul 29, 2022
1 parent b4ab2f0 commit a7be13b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/_pytest/warning_types.py
Expand Up @@ -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."""

Expand All @@ -82,7 +81,7 @@ def simple(cls, apiname: str) -> "PytestExperimentalApiWarning":


@final
class PytestUnhandledCoroutineWarning(PytestWarning):
class PytestUnhandledCoroutineWarning(PytestReturnNotNoneWarning):
"""Warning emitted for an unhandled coroutine.
A coroutine was encountered when collecting test functions, but was not
Expand Down

0 comments on commit a7be13b

Please sign in to comment.