From de60ac1713ea2bbe6be0d733d0c12204f1d44a71 Mon Sep 17 00:00:00 2001 From: Cheuk Ting Ho Date: Sun, 15 May 2022 09:39:09 +0100 Subject: [PATCH] Update src/_pytest/python.py Co-authored-by: Florian Bruhin --- src/_pytest/python.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/_pytest/python.py b/src/_pytest/python.py index 699535620..90e884d21 100644 --- a/src/_pytest/python.py +++ b/src/_pytest/python.py @@ -198,7 +198,7 @@ def pytest_pyfunc_call(pyfuncitem: "Function") -> Optional[object]: warnings.warn( PytestReturnNotNoneWarning( f"Expected None, but the test returned {result!r}, which will be an error in a " - "future version of Pytest. Did you mean to use `assert` instead of `return`?" + "future version of pytest. Did you mean to use `assert` instead of `return`?" ) ) return True