Skip to content

Commit 92122f3

Browse files
committed
remove impossible test scenario
1 parent a05beaa commit 92122f3

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

pandas/tests/frame/methods/test_sample.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,9 +113,6 @@ def test_sample_invalid_weight_lengths(self, obj):
113113
with pytest.raises(ValueError, match=msg):
114114
obj.sample(n=3, weights=[0.5] * 11)
115115

116-
with pytest.raises(ValueError, match="Fewer non-zero entries in p than size"):
117-
obj.sample(n=4, weights=Series([0, 0, 0.2]))
118-
119116
def test_sample_negative_weights(self, obj):
120117
# Check won't accept negative weights
121118
bad_weights = [-0.1] * 10

0 commit comments

Comments
 (0)