test-pathencode: reduce makepart length requirement by 1 stable
authorSiddharth Agarwal <sid0@fb.com>
Wed, 19 Jun 2013 23:01:22 -0700
branchstable
changeset 19318 9778c77f05d6
parent 19317 66da6e9feacd
child 19319 ec17ddecdf64
test-pathencode: reduce makepart length requirement by 1 This allows path components of length 1 to be generated.
tests/test-pathencode.py
--- 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)