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

Method no_re_match_line

src/_pytest/pytester.py:1754–1762  ·  view source on GitHub ↗

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

(self, pat: str)

Source from the content-addressed store, hash-verified

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``.
1756
1757 :param str pat: The regular expression to match lines.
1758 """
1759 __tracebackhide__ = True
1760 self._no_match_line(
1761 pat, lambda name, pat: bool(re.match(pat, name)), "re.match"
1762 )
1763
1764 def _no_match_line(
1765 self, pat: str, match_func: Callable[[str, str], bool], match_nickname: str

Calls 2

_no_match_lineMethod · 0.95
matchMethod · 0.80

Tested by

no test coverage detected