From: Mark Dickinson Date: Wed, 12 May 2010 19:53:36 +0000 (+0000) Subject: Fix unused variable in test_factorial. X-Git-Tag: v2.7rc1~165 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=62f7e8b0b8e068a0281d737dba73d063cad4b31c;p=python Fix unused variable in test_factorial. --- diff --git a/Lib/test/test_math.py b/Lib/test/test_math.py index 72c52ff6cc..36f6847907 100644 --- a/Lib/test/test_math.py +++ b/Lib/test/test_math.py @@ -375,7 +375,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)