Skip to content

Commit 9c5b9f0

Browse files
Daniel SaxtonDaniel Saxton
Daniel Saxton
authored and
Daniel Saxton
committed
Remove test that checks for error
1 parent 75c915f commit 9c5b9f0

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

Diff for: pandas/tests/indexing/test_na_indexing.py

-18
Original file line numberDiff line numberDiff line change
@@ -59,21 +59,3 @@ def test_series_mask_boolean(values, dtype, mask, box_mask, frame):
5959

6060
result = ser.loc[mask]
6161
tm.assert_equal(result, expected)
62-
63-
64-
@pytest.mark.parametrize("frame", [True, False])
65-
def test_indexing_with_na_raises(frame):
66-
s = pd.Series([1, 2, 3], name="name")
67-
68-
if frame:
69-
s = s.to_frame()
70-
mask = pd.array([True, False, None], dtype="boolean")
71-
match = "cannot mask with array containing NA / NaN values"
72-
with pytest.raises(ValueError, match=match):
73-
s[mask]
74-
75-
with pytest.raises(ValueError, match=match):
76-
s.loc[mask]
77-
78-
with pytest.raises(ValueError, match=match):
79-
s.iloc[mask]

0 commit comments

Comments
 (0)