Skip to content

Commit 287a93f

Browse files
authored
upgrade CoroutineWarning to DeprecationWarning
1 parent 130c954 commit 287a93f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/_pytest/warning_types.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ class PytestRemovedIn8Warning(PytestDeprecationWarning):
5656

5757

5858
@final
59-
class PytestReturnNotNoneWarning(PytestDeprecationWarning):
59+
class PytestReturnNotNoneWarning(PytestRemovedIn8Warning):
6060
"""Warning emitted when a test function is returning value other than None."""
6161

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

8383

8484
@final
85-
class PytestUnhandledCoroutineWarning(PytestWarning):
85+
class PytestUnhandledCoroutineWarning(PytestRemovedIn8Warning):
8686
"""Warning emitted for an unhandled coroutine.
8787
8888
A coroutine was encountered when collecting test functions, but was not

0 commit comments

Comments
 (0)