Skip to content

Commit 3c26850

Browse files
committed
changes made to pandas/tests//indexes/common.py to test deprecation of is_interval
1 parent fbbec97 commit 3c26850

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

pandas/tests/indexes/common.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -795,6 +795,12 @@ def test_inv(self, simple_index):
795795
with pytest.raises(TypeError, match=msg):
796796
~Series(idx)
797797

798+
def test_is_interval_is_deprecated(self, simple_index):
799+
# GH50042
800+
idx = simple_index
801+
with tm.assert_produces_warning(FutureWarning):
802+
idx.is_interval()
803+
798804

799805
class NumericBase(Base):
800806
"""

0 commit comments

Comments
 (0)