diff Lib/test/test_math.py @ 61539:b554eea2610c legacy-trunk

Fix unused variable in test_factorial.
author Mark Dickinson <dickinsm@gmail.com>
date Wed, 12 May 2010 19:53:36 +0000
parents 2ba7677bfa95
children cff0a923140b
line wrap: on
line diff
--- a/Lib/test/test_math.py	Wed May 12 18:56:48 2010 +0000
+++ b/Lib/test/test_math.py	Wed May 12 19:53:36 2010 +0000
@@ -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)