Skip to content

Commit f984113

Browse files
committed
matching warning messege in test
1 parent 01633b5 commit f984113

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
@@ -798,7 +798,11 @@ def test_inv(self, simple_index):
798798
def test_is_categorical_is_deprecated(self, simple_index):
799799
# GH50042
800800
idx = simple_index
801-
with tm.assert_produces_warning(FutureWarning):
801+
with tm.assert_produces_warning(
802+
FutureWarning,
803+
match="Index.is_categorical is deprecated."
804+
"Use pandas.api.types.is_categorical_dtype instead",
805+
):
802806
idx.is_categorical()
803807

804808

0 commit comments

Comments
 (0)