Update src/_pytest/python.py

Co-authored-by: Florian Bruhin <me@the-compiler.org>
This commit is contained in:
Cheuk Ting Ho 2022-05-15 09:39:09 +01:00 committed by GitHub
parent 03c1e51f8e
commit de60ac1713
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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