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
2 changes: 2 additions & 0 deletions src/_pytest/pytester.py
Original file line number Diff line number Diff line change
Expand Up @@ -1323,6 +1323,7 @@ def fnmatch_lines(self, lines2):
matches and non-matches are also printed on stdout.

"""
__tracebackhide__ = True
self._match_lines(lines2, fnmatch, "fnmatch")

def re_match_lines(self, lines2):
Expand All @@ -1334,6 +1335,7 @@ def re_match_lines(self, lines2):
The matches and non-matches are also printed on stdout.

"""
__tracebackhide__ = True
self._match_lines(lines2, lambda name, pat: re.match(pat, name), "re.match")

def _match_lines(self, lines2, match_func, match_nickname):
Expand Down