diff --git a/doc/en/writing_plugins.rst b/doc/en/writing_plugins.rst index 74533e27385..03c4c78b0dd 100644 --- a/doc/en/writing_plugins.rst +++ b/doc/en/writing_plugins.rst @@ -293,7 +293,7 @@ can use like this:: pass """) result = testdir.runpytest("--verbose") - result.fnmatch_lines(""" + result.stdout.fnmatch_lines(""" test_example* """)