diff --git a/Lib/test/test_math.py b/Lib/test/test_math.py index f50903aa9b3..9089013eb79 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)