Skip to content

Commit 551eafb

Browse files
pytester: improve Pytester.LineMatcher._no_match_line docstring (#14438)
1 parent 4636842 commit 551eafb

1 file changed

Lines changed: 10 additions & 2 deletions

File tree

src/_pytest/pytester.py

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1760,9 +1760,17 @@ def no_re_match_line(self, pat: str) -> None:
17601760
def _no_match_line(
17611761
self, pat: str, match_func: Callable[[str, str], bool], match_nickname: str
17621762
) -> None:
1763-
"""Ensure captured lines does not have a the given pattern, using ``fnmatch.fnmatch``.
1763+
"""Underlying implementation of ``no_fnmatch_line`` and ``no_re_match_line``.
17641764
1765-
:param str pat: The pattern to match lines.
1765+
:param str pat:
1766+
The pattern to match lines.
1767+
:param match_func:
1768+
A callable ``match_func(line, pattern)`` where line is the
1769+
captured line from stdout/stderr and pattern is the matching
1770+
pattern.
1771+
:param match_nickname:
1772+
The nickname for the match function that will be logged to stdout
1773+
when a match occurs.
17661774
"""
17671775
__tracebackhide__ = True
17681776
nomatch_printed = False

0 commit comments

Comments
 (0)