Patchwork [3,of,3] tests: remove unused variables from test-pathencode.py caught by pyflakes

login
register
mail settings
Submitter Sean Farley
Date April 4, 2014, 1:36 a.m.
Message ID <069fbf64216236171854.1396575384@laptop.local>
Download mbox | patch
Permalink /patch/4223/
State Accepted
Commit e9725e18bdf8eaebbdd3a5a4b4dba66e615d5574
Headers show

Comments

Sean Farley - April 4, 2014, 1:36 a.m.
# HG changeset patch
# User Sean Farley <sean.michael.farley@gmail.com>
# 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
David Soria Parra - April 4, 2014, 5:14 p.m.
Sean Farley <sean.michael.farley@gmail.com> writes:

> # HG changeset patch
> # User Sean Farley <sean.michael.farley@gmail.com>
> # 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

Those are queued for stable. Thank you.

Patch

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)