Skip to content

Commit db54fad

Browse files
committed
TST: Add test case for categorical index assertion fix
1 parent c0427e6 commit db54fad

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pandas/_testing/asserters.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,8 @@ def _check_types(left, right, obj: str = "Index") -> None:
326326
mismatch = left._values != right._values
327327
except TypeError as e:
328328
raise AssertionError(
329-
f"{obj} cannot be compared due to incompatible categorical types.\n{e}"
329+
f"{obj} cannot be compared due to incompatible"
330+
f"categorical types.\n{e}"
330331
) from e
331332

332333
if not isinstance(mismatch, np.ndarray):

0 commit comments

Comments
 (0)