Skip to content

Commit 4e3aa15

Browse files
committed
changes made to pandas/tests//indexes/common.py to test deprecation of is_interval
1 parent fc26996 commit 4e3aa15

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

pandas/tests/indexes/common.py

+6
Original file line numberDiff line numberDiff line change
@@ -823,6 +823,12 @@ def test_is_categorical_is_deprecated(self, simple_index):
823823
):
824824
idx.is_categorical()
825825

826+
def test_is_interval_is_deprecated(self, simple_index):
827+
# GH50042
828+
idx = simple_index
829+
with tm.assert_produces_warning(FutureWarning):
830+
idx.is_interval()
831+
826832

827833
class NumericBase(Base):
828834
"""

0 commit comments

Comments
 (0)