@@ -32,9 +32,9 @@ def test_index_equal_levels_mismatch():
32
32
33
33
34
34
def test_index_equal_values_mismatch (check_exact ):
35
- msg = """MultiIndex level \\ [1\\ ] are different
35
+ msg = """Index level \\ [1\\ ] are different
36
36
37
- MultiIndex level \\ [1\\ ] values are different \\ (25\\ .0 %\\ )
37
+ Index level \\ [1\\ ] values are different \\ (25\\ .0 %\\ )
38
38
\\ [left\\ ]: Index\\ (\\ [2, 2, 3, 4\\ ], dtype='int64'\\ )
39
39
\\ [right\\ ]: Index\\ (\\ [1, 2, 3, 4\\ ], dtype='int64'\\ )"""
40
40
@@ -172,9 +172,9 @@ def test_index_equal_level_values_mismatch(check_exact, rtol):
172
172
idx2 = MultiIndex .from_tuples ([("A" , 1 ), ("A" , 2 ), ("B" , 3 ), ("B" , 4 )])
173
173
kwargs = {"check_exact" : check_exact , "rtol" : rtol }
174
174
175
- msg = """MultiIndex level \\ [1\\ ] are different
175
+ msg = """Index level \\ [1\\ ] are different
176
176
177
- MultiIndex level \\ [1\\ ] values are different \\ (25\\ .0 %\\ )
177
+ Index level \\ [1\\ ] values are different \\ (25\\ .0 %\\ )
178
178
\\ [left\\ ]: Index\\ (\\ [2, 2, 3, 4\\ ], dtype='int64'\\ )
179
179
\\ [right\\ ]: Index\\ (\\ [1, 2, 3, 4\\ ], dtype='int64'\\ )"""
180
180
@@ -311,9 +311,7 @@ def test_assert_multi_index_dtype_check_categorical(check_categorical):
311
311
idx1 = MultiIndex .from_arrays ([Categorical (np .array ([1 , 2 ], dtype = np .uint64 ))])
312
312
idx2 = MultiIndex .from_arrays ([Categorical (np .array ([1 , 2 ], dtype = np .int64 ))])
313
313
if check_categorical :
314
- with pytest .raises (
315
- AssertionError , match = r"^MultiIndex level \[0\] are different"
316
- ):
314
+ with pytest .raises (AssertionError , match = r"^Index level \[0\] are different" ):
317
315
tm .assert_index_equal (idx1 , idx2 , check_categorical = check_categorical )
318
316
else :
319
317
tm .assert_index_equal (idx1 , idx2 , check_categorical = check_categorical )
0 commit comments