pytester: LineMatcher: __tracebackhide__ with _fail
Follow-up to 2228ccb
(gone lost in resolving the conflict).
This commit is contained in:
parent
58ec5bea35
commit
b96e0a71a6
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue