diff tests/test-pathencode.py @ 19327:cf1b0a58a0de

merge with stable
author Matt Mackall <mpm@selenic.com>
date Fri, 21 Jun 2013 15:31:40 -0500
parents ff1586a3adc5 ec17ddecdf64
children e9725e18bdf8
line wrap: on
line diff
--- 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)