Skip to content

Commit

Permalink
upgrade CoroutineWarning to DeprecationWarning
Browse files Browse the repository at this point in the history
  • Loading branch information
graingert committed Jun 1, 2022
1 parent 130c954 commit 287a93f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/_pytest/warning_types.py
Expand Up @@ -56,7 +56,7 @@ class PytestRemovedIn8Warning(PytestDeprecationWarning):


@final
class PytestReturnNotNoneWarning(PytestDeprecationWarning):
class PytestReturnNotNoneWarning(PytestRemovedIn8Warning):
"""Warning emitted when a test function is returning value other than None."""

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


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

0 comments on commit 287a93f

Please sign in to comment.