diff --git a/swh/loader/tests/__init__.py b/swh/loader/tests/__init__.py --- a/swh/loader/tests/__init__.py +++ b/swh/loader/tests/__init__.py @@ -44,6 +44,7 @@ the visit status for further check during the remaining part of the test. """ + __tracebackhide__ = True # Hide from pytest tracebacks on failure visit_status = origin_get_latest_visit_status(storage, url) assert visit_status is not None, f"Origin {url} has no visits" if type: @@ -136,6 +137,7 @@ needed. """ + __tracebackhide__ = True # Hide from pytest tracebacks on failure if not isinstance(expected_snapshot, Snapshot): raise AssertionError( f"argument 'expected_snapshot' must be a snapshot: {expected_snapshot!r}"