We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 01633b5 commit f984113Copy full SHA for f984113
pandas/tests/indexes/common.py
@@ -798,7 +798,11 @@ def test_inv(self, simple_index):
798
def test_is_categorical_is_deprecated(self, simple_index):
799
# GH50042
800
idx = simple_index
801
- with tm.assert_produces_warning(FutureWarning):
+ with tm.assert_produces_warning(
802
+ FutureWarning,
803
+ match="Index.is_categorical is deprecated."
804
+ "Use pandas.api.types.is_categorical_dtype instead",
805
+ ):
806
idx.is_categorical()
807
808
0 commit comments