Merge pull request #6250 from blueyed/tbh
pytester: LineMatcher: __tracebackhide__ with _fail
This commit is contained in:
commit
4ee984ff0a
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue