Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions src/_pytest/pytester.py
Original file line number Diff line number Diff line change
Expand Up @@ -1760,9 +1760,17 @@ def no_re_match_line(self, pat: str) -> None:
def _no_match_line(
self, pat: str, match_func: Callable[[str, str], bool], match_nickname: str
) -> None:
"""Ensure captured lines does not have a the given pattern, using ``fnmatch.fnmatch``.
"""Underlying implementation of ``no_fnmatch_line`` and ``no_re_match_line``.

:param str pat: The pattern to match lines.
:param str pat:
The pattern to match lines.
:param match_func:
A callable ``match_func(line, pattern)`` where line is the
captured line from stdout/stderr and pattern is the matching
pattern.
:param match_nickname:
The nickname for the match function that will be logged to stdout
when a match occurs.
"""
__tracebackhide__ = True
nomatch_printed = False
Expand Down
Loading