Skip to content

Commit bc36d1f

Browse files
committed
matching warning messege in test
1 parent 947284c commit bc36d1f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

pandas/tests/indexes/common.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -825,7 +825,11 @@ def test_holds_integer_deprecated(self, simple_index):
825825
def test_is_categorical_is_deprecated(self, simple_index):
826826
# GH50042
827827
idx = simple_index
828-
with tm.assert_produces_warning(FutureWarning):
828+
with tm.assert_produces_warning(
829+
FutureWarning,
830+
match="Index.is_categorical is deprecated."
831+
"Use pandas.api.types.is_categorical_dtype instead",
832+
):
829833
idx.is_categorical()
830834

831835

0 commit comments

Comments
 (0)