Skip to content

Commit 4e79667

Browse files
committed
Fix test_groupby_large_random_integers, which was occasionally creating a 0-rows frame
1 parent 2af74d1 commit 4e79667

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_groups.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ def test_groupby_large_random_integers(seed):
153153
chunks = ([random.sample(range(n0), random.randint(1, n0))] +
154154
[random.sample([0] * 100 + list(range(256)), random.randint(1, 20))
155155
for i in range(ngrps1)])
156-
n = int(random.expovariate(0.0001))
156+
n = int(random.expovariate(0.0001)) + 10
157157
sample = [sum(random.choice(chunks[i]) << (8*i) for i in range(len(chunks)))
158158
for _ in range(n)]
159159
nuniques = len(set(sample))

0 commit comments

Comments
 (0)