Skip to content

Commit b16b732

Browse files
Terji PetersenTerji Petersen
Terji Petersen
authored and
Terji Petersen
committed
DEPR: don't make Index instantiate Int64/Uint64/Flaot64Index
1 parent 0f47bf9 commit b16b732

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pandas/tests/util/test_assert_categorical_equal.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ def test_categorical_equal_order_mismatch(check_category_order):
2222
msg = """Categorical\\.categories are different
2323
2424
Categorical\\.categories values are different \\(100\\.0 %\\)
25-
\\[left\\]: Int64Index\\(\\[1, 2, 3, 4\\], dtype='int64'\\)
26-
\\[right\\]: Int64Index\\(\\[4, 3, 2, 1\\], dtype='int64'\\)"""
25+
\\[left\\]: NumericIndex\\(\\[1, 2, 3, 4]\\, dtype='int64'\\)
26+
\\[right\\]: NumericIndex\\(\\[4, 3, 2, 1\\], dtype='int64'\\)"""
2727
with pytest.raises(AssertionError, match=msg):
2828
tm.assert_categorical_equal(c1, c2, **kwargs)
2929
else:
@@ -34,8 +34,8 @@ def test_categorical_equal_categories_mismatch():
3434
msg = """Categorical\\.categories are different
3535
3636
Categorical\\.categories values are different \\(25\\.0 %\\)
37-
\\[left\\]: Int64Index\\(\\[1, 2, 3, 4\\], dtype='int64'\\)
38-
\\[right\\]: Int64Index\\(\\[1, 2, 3, 5\\], dtype='int64'\\)"""
37+
\\[left\\]: NumericIndex\\(\\[1, 2, 3, 4\\], dtype='int64'\\)
38+
\\[right\\]: NumericIndex\\(\\[1, 2, 3, 5\\], dtype='int64'\\)"""
3939

4040
c1 = Categorical([1, 2, 3, 4])
4141
c2 = Categorical([1, 2, 3, 5])

0 commit comments

Comments
 (0)