def fnmatch_lines(self, lines2):
__tracebackhide__ = True<EOL>self._match_lines(lines2, fnmatch, "<STR_LIT>")<EOL>
Search captured text for matching lines using ``fnmatch.fnmatch``.

        The argument is a list of lines which have to match and can use glob
        wildcards.  If they do not match a pytest.fail() is called.  The
        matches and non-matches are also printed on stdout.