__tracebackhide__ for check

This commit is contained in:
Daniel Hahler 2019-04-06 15:00:23 +02:00
parent 2ebb69b50a
commit 2b1ae8a66d
1 changed files with 1 additions and 0 deletions

View File

@ -1242,6 +1242,7 @@ def test_line_with_reprcrash(monkeypatch):
pass
def check(msg, width, expected):
__tracebackhide__ = True
if msg:
rep.longrepr.reprcrash.message = msg
actual = _get_line_with_reprcrash_message(config, rep, width)