From: Mark Dickinson Date: Wed, 12 May 2010 19:56:10 +0000 (+0000) Subject: Merged revisions 81126 via svnmerge from X-Git-Tag: v2.6.6rc1~334 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=838edd8bc6e22db46e2431e499c963e27ee76652;p=python Merged revisions 81126 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r81126 | mark.dickinson | 2010-05-12 20:53:36 +0100 (Wed, 12 May 2010) | 1 line Fix unused variable in test_factorial. ........ --- diff --git a/Lib/test/test_math.py b/Lib/test/test_math.py index f50903aa9b..9089013eb7 100644 --- a/Lib/test/test_math.py +++ b/Lib/test/test_math.py @@ -292,7 +292,7 @@ class MathTests(unittest.TestCase): return result values = range(10) + [50, 100, 500] random.shuffle(values) - for x in range(10): + for x in values: for cast in (int, long, float): self.assertEqual(math.factorial(cast(x)), fact(x), (x, fact(x), math.factorial(x))) self.assertRaises(ValueError, math.factorial, -1)