Merge pull request #6250 from blueyed/tbh

pytester: LineMatcher: __tracebackhide__ with _fail
This commit is contained in:
Daniel Hahler 2019-11-21 04:26:20 +01:00 committed by GitHub
commit 4ee984ff0a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -1481,6 +1481,7 @@ class LineMatcher:
self._log_output = []
def _fail(self, msg):
__tracebackhide__ = True
log_text = self._log_text
self._log_output = []
pytest.fail(log_text)