[Python-checkins] r81126 - python/trunk/Lib/test/test_math.py

mark.dickinson python-checkins at python.org
Wed May 12 21:53:36 CEST 2010


Author: mark.dickinson
Date: Wed May 12 21:53:36 2010
New Revision: 81126

Log:
Fix unused variable in test_factorial.

Modified:
   python/trunk/Lib/test/test_math.py

Modified: python/trunk/Lib/test/test_math.py
==============================================================================
--- python/trunk/Lib/test/test_math.py	(original)
+++ python/trunk/Lib/test/test_math.py	Wed May 12 21:53:36 2010
@@ -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)


More information about the Python-checkins mailing list