Skip to content

Commit 5af92b6

Browse files
removed redundant index test from tests/base/test_ops.py
1 parent 8914c01 commit 5af92b6

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

pandas/tests/base/test_ops.py

-17
Original file line numberDiff line numberDiff line change
@@ -851,23 +851,6 @@ def test_access_by_position(self, indices):
851851
with pytest.raises(IndexError, match=msg):
852852
series.iloc[size]
853853

854-
@pytest.mark.parametrize("indexer_klass", [list, pd.Index])
855-
@pytest.mark.parametrize(
856-
"indexer",
857-
[
858-
[True] * 10,
859-
[False] * 10,
860-
[True, False, True, True, False, False, True, True, False, True],
861-
],
862-
)
863-
def test_bool_indexing(self, indexer_klass, indexer):
864-
# GH 22533
865-
for idx in self.indexes:
866-
exp_idx = [i for i in range(len(indexer)) if indexer[i]]
867-
tm.assert_index_equal(idx[indexer_klass(indexer)], idx[exp_idx])
868-
s = pd.Series(idx)
869-
tm.assert_series_equal(s[indexer_klass(indexer)], s.iloc[exp_idx])
870-
871854
def test_get_indexer_non_unique_dtype_mismatch(self):
872855
# GH 25459
873856
indexes, missing = pd.Index(["A", "B"]).get_indexer_non_unique(pd.Index([0]))

0 commit comments

Comments
 (0)