Update src/_pytest/python.py
Co-authored-by: Florian Bruhin <me@the-compiler.org>
This commit is contained in:
parent
03c1e51f8e
commit
de60ac1713
|
@ -198,7 +198,7 @@ def pytest_pyfunc_call(pyfuncitem: "Function") -> Optional[object]:
|
||||||
warnings.warn(
|
warnings.warn(
|
||||||
PytestReturnNotNoneWarning(
|
PytestReturnNotNoneWarning(
|
||||||
f"Expected None, but the test returned {result!r}, which will be an error in a "
|
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
|
return True
|
||||||
|
|
Loading…
Reference in New Issue