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

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)