From patchwork Fri Apr 4 01:36:24 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [3, of, 3] tests: remove unused variables from test-pathencode.py caught by pyflakes From: Sean Farley X-Patchwork-Id: 4223 Message-Id: <069fbf64216236171854.1396575384@laptop.local> To: mercurial-devel@selenic.com Date: Thu, 03 Apr 2014 20:36:24 -0500 # HG changeset patch # User Sean Farley # Date 1396575356 18000 # Thu Apr 03 20:35:56 2014 -0500 # Node ID 069fbf64216236171854945ebb0f2a65ebb4f905 # Parent 8e029062eb1c192a041e624866d38ed99a61f847 tests: remove unused variables from test-pathencode.py caught by pyflakes diff --git a/tests/test-pathencode.py b/tests/test-pathencode.py --- a/tests/test-pathencode.py +++ b/tests/test-pathencode.py @@ -141,11 +141,10 @@ def makepath(rng, j, k): def genpath(rng, count): '''Generate random pathnames with gradually increasing lengths.''' mink, maxk = 1, 4096 def steps(): - x, k = 0, mink for i in xrange(count): yield mink + int(round(math.sqrt((maxk - mink) * float(i) / count))) for k in steps(): x = rng.randint(1, k) y = rng.randint(1, k)