diff --git a/src/_pytest/assertion/util.py b/src/_pytest/assertion/util.py index d852a3479..c0e4f4d20 100644 --- a/src/_pytest/assertion/util.py +++ b/src/_pytest/assertion/util.py @@ -460,6 +460,7 @@ def _compare_eq_cls(left: Any, right: Any, verbose: int) -> List[str]: fields_to_check = left._fields else: assert False + indent = " " same = [] diff = []