commit | 62f7e8b0b8e068a0281d737dba73d063cad4b31c | [log] [tgz] |
---|---|---|
author | Mark Dickinson <dickinsm@gmail.com> | Wed May 12 19:53:36 2010 +0000 |
committer | Mark Dickinson <dickinsm@gmail.com> | Wed May 12 19:53:36 2010 +0000 |
tree | 96cfbb58dfe11d3752a9f479879ccf7fe8fa883d | |
parent | f09bc660831e4718a1ace370acf35eadcc09a348 [diff] [blame] |
Fix unused variable in test_factorial.
diff --git a/Lib/test/test_math.py b/Lib/test/test_math.py index 72c52ff..36f6847 100644 --- a/Lib/test/test_math.py +++ b/Lib/test/test_math.py
@@ -375,7 +375,7 @@ 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)