Skip to content

Commit ddf650e

Browse files
committed
Add unit test and (GH#61941)
1 parent 08739f2 commit ddf650e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pandas/tests/util/test_assert_index_equal.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -322,5 +322,7 @@ def test_assert_index_equal_categorical_mismatch_categories():
322322
# GH#61941
323323
ci1 = CategoricalIndex(["a", "b", "c"], categories=["a", "b", "c"], ordered=False)
324324
ci2 = CategoricalIndex(["a", "x", "c"], categories=["a", "b", "c"], ordered=False)
325+
325326
with pytest.raises(AssertionError, match="Index are different"):
326327
tm.assert_index_equal(ci1, ci2, check_exact=False, check_categorical=True)
328+

0 commit comments

Comments
 (0)