changeset 19318:9778c77f05d6 stable

test-pathencode: reduce makepart length requirement by 1 This allows path components of length 1 to be generated.
author Siddharth Agarwal <sid0@fb.com>
date Wed, 19 Jun 2013 23:01:22 -0700
parents 66da6e9feacd
children ec17ddecdf64
files tests/test-pathencode.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-pathencode.py	Wed Jun 19 22:34:34 2013 -0700
+++ b/tests/test-pathencode.py	Wed Jun 19 23:01:22 2013 -0700
@@ -125,7 +125,7 @@
     p = pickfrom(rng, firsttable)(rng)
     l = len(p)
     ps = [p]
-    while l <= k:
+    while l < k:
         p = pickfrom(rng, resttable)(rng)
         l += len(p)
         ps.append(p)