tests/test-pathencode.py
changeset 19327 cf1b0a58a0de
parent 19322 ff1586a3adc5
parent 19319 ec17ddecdf64
child 20938 e9725e18bdf8
--- a/tests/test-pathencode.py	Mon Jun 17 19:44:00 2013 -0700
+++ b/tests/test-pathencode.py	Fri Jun 21 15:31:40 2013 -0500
@@ -124,7 +124,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)