pytester: LineMatcher: __tracebackhide__ with _fail

Follow-up to 2228ccb (gone lost in resolving the conflict).
This commit is contained in:
Daniel Hahler 2019-11-21 01:23:36 +01:00
parent 58ec5bea35
commit b96e0a71a6
1 changed files with 1 additions and 0 deletions

View File

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