We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a98dd0e commit 683dab7Copy full SHA for 683dab7
pandas/tests/indexes/common.py
@@ -996,3 +996,16 @@ def test_searchsorted_monotonic(self, indices):
996
# non-monotonic should raise.
997
with pytest.raises(ValueError):
998
indices._searchsorted_monotonic(value, side='left')
999
+
1000
+ def test_putmask_with_wrong_mask(self):
1001
+ # GH18368
1002
+ index = self.create_index()
1003
1004
+ with pytest.raises(ValueError):
1005
+ index.putmask(np.ones(len(index) + 1, np.bool), 1)
1006
1007
1008
+ index.putmask(np.ones(len(index) - 1, np.bool), 1)
1009
1010
1011
+ index.putmask('foo', 1)
0 commit comments