Skip to content

Commit

Permalink
Remove test that checks for error
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Saxton authored and Daniel Saxton committed Feb 2, 2020
1 parent 75c915f commit 9c5b9f0
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions pandas/tests/indexing/test_na_indexing.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,21 +59,3 @@ def test_series_mask_boolean(values, dtype, mask, box_mask, frame):

result = ser.loc[mask]
tm.assert_equal(result, expected)


@pytest.mark.parametrize("frame", [True, False])
def test_indexing_with_na_raises(frame):
s = pd.Series([1, 2, 3], name="name")

if frame:
s = s.to_frame()
mask = pd.array([True, False, None], dtype="boolean")
match = "cannot mask with array containing NA / NaN values"
with pytest.raises(ValueError, match=match):
s[mask]

with pytest.raises(ValueError, match=match):
s.loc[mask]

with pytest.raises(ValueError, match=match):
s.iloc[mask]

0 comments on commit 9c5b9f0

Please sign in to comment.