Submitter | Siddharth Agarwal |
---|---|
Date | June 20, 2013, 3:18 p.m. |
Message ID | <33db99344b5c851de53d.1371741494@dev1091.prn1.facebook.com> |
Download | mbox | patch |
Permalink | /patch/1744/ |
State | Superseded, archived |
Headers | show |
Comments
Patch
diff --git a/tests/test-pathencode.py b/tests/test-pathencode.py --- a/tests/test-pathencode.py +++ b/tests/test-pathencode.py @@ -125,7 +125,8 @@ p = pickfrom(rng, firsttable)(rng) l = len(p) ps = [p] - while l < k: + maxl = rng.randint(1, k) + while l < maxl: p = pickfrom(rng, resttable)(rng) l += len(p) ps.append(p)