diff --git a/crates/red_knot_python_semantic/src/types/infer.rs b/crates/red_knot_python_semantic/src/types/infer.rs index 0652f1ac77..cbd57540fe 100644 --- a/crates/red_knot_python_semantic/src/types/infer.rs +++ b/crates/red_knot_python_semantic/src/types/infer.rs @@ -2948,7 +2948,11 @@ mod tests { let file = system_path_to_file(db, file_name).expect("Expected file to exist."); let ty = global_symbol_ty(db, file, symbol_name); - assert_eq!(ty.display(db).to_string(), expected); + assert_eq!( + ty.display(db).to_string(), + expected, + "Mismatch for symbol '{symbol_name}' in '{file_name}'" + ); } fn assert_scope_ty(