Ensure captured lines do not match the given pattern, using ``re.match``. :param str pat: The regular expression to match lines.
(self, pat: str)
| 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 |
no test coverage detected