update test

This commit is contained in:
Cheukting 2022-05-13 22:42:46 +01:00
parent 7855fdefd2
commit 03c1e51f8e
1 changed files with 3 additions and 1 deletions

View File

@ -1302,4 +1302,6 @@ def test_function_return_non_none_warning(testdir) -> None:
"""
)
res = testdir.runpytest()
res.stdout.fnmatch_lines(["*PytestReturnNotNoneWarning: Test function returning*"])
res.stdout.fnmatch_lines(
["*PytestReturnNotNoneWarning: Expected None, but the test returned*"]
)