MCPcopy
hub / github.com/pytest-dev/pytest / no_fnmatch_line

Method no_fnmatch_line

src/_pytest/pytester.py:1746–1752  ·  view source on GitHub ↗

Ensure captured lines do not match the given pattern, using ``fnmatch.fnmatch``. :param str pat: The pattern to match lines.

(self, pat: str)

Source from the content-addressed store, hash-verified

1744 self._log_output = []
1745
1746 def no_fnmatch_line(self, pat: str) -> None:
1747 """Ensure captured lines do not match the given pattern, using ``fnmatch.fnmatch``.
1748
1749 :param str pat: The pattern to match lines.
1750 """
1751 __tracebackhide__ = True
1752 self._no_match_line(pat, fnmatch, "fnmatch")
1753
1754 def no_re_match_line(self, pat: str) -> None:
1755 """Ensure captured lines do not match the given pattern, using ``re.match``.

Calls 1

_no_match_lineMethod · 0.95

Tested by

no test coverage detected