From 287a93fa67422e3a58d646149c14826c8277e6be Mon Sep 17 00:00:00 2001 From: Thomas Grainger Date: Wed, 1 Jun 2022 17:31:19 +0100 Subject: [PATCH] upgrade CoroutineWarning to DeprecationWarning --- src/_pytest/warning_types.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/_pytest/warning_types.py b/src/_pytest/warning_types.py index ebfeb87d842..40bc5a507a4 100644 --- a/src/_pytest/warning_types.py +++ b/src/_pytest/warning_types.py @@ -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" @@ -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