From fa786edafae266871b16922c0f9a408c5890ad75 Mon Sep 17 00:00:00 2001 From: Simon Hawkins Date: Wed, 24 Jul 2019 16:20:26 +0100 Subject: [PATCH] DEPR: remove .ix from tests/indexing/test_partial.py --- pandas/tests/indexing/multiindex/test_partial.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/pandas/tests/indexing/multiindex/test_partial.py b/pandas/tests/indexing/multiindex/test_partial.py index b1519d82e1aa7..692b57ff98f94 100644 --- a/pandas/tests/indexing/multiindex/test_partial.py +++ b/pandas/tests/indexing/multiindex/test_partial.py @@ -1,5 +1,3 @@ -from warnings import catch_warnings, simplefilter - import numpy as np import pytest @@ -106,11 +104,6 @@ def test_getitem_partial_column_select(self): expected = df.loc[("a", "y")][[1, 0]] tm.assert_frame_equal(result, expected) - with catch_warnings(record=True): - simplefilter("ignore", FutureWarning) - result = df.ix[("a", "y"), [1, 0]] - tm.assert_frame_equal(result, expected) - with pytest.raises(KeyError, match=r"\('a', 'foo'\)"): df.loc[("a", "foo"), :]