summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Lib/test/test_math.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_math.py b/Lib/test/test_math.py
index 525ee09..48d9b1a 100644
--- a/Lib/test/test_math.py
+++ b/Lib/test/test_math.py
@@ -372,7 +372,7 @@ class MathTests(unittest.TestCase):
return result
values = list(range(10)) + [50, 100, 500]
random.shuffle(values)
- for x in range(10):
+ for x in values:
for cast in (int, float):
self.assertEqual(math.factorial(cast(x)), fact(x), (x, fact(x), math.factorial(x)))
self.assertRaises(ValueError, math.factorial, -1)