Merge pull request #4107 from blueyed/__tracebackhide__

pytester: fix __tracebackhide__ for {re_,fn}match_lines
This commit is contained in:
Daniel Hahler 2018-10-10 20:55:32 +02:00 committed by GitHub
commit 602e74c2a7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -1323,6 +1323,7 @@ class LineMatcher(object):
matches and non-matches are also printed on stdout.
"""
__tracebackhide__ = True
self._match_lines(lines2, fnmatch, "fnmatch")
def re_match_lines(self, lines2):
@ -1334,6 +1335,7 @@ class LineMatcher(object):
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):