[Python-checkins] r81127 - in python/branches/py3k: Lib/test/test_math.py

mark.dickinson python-checkins at python.org
Wed May 12 21:54:51 CEST 2010


Author: mark.dickinson
Date: Wed May 12 21:54:51 2010
New Revision: 81127

Log:
Merged revisions 81126 via svnmerge from 
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r81126 | mark.dickinson | 2010-05-12 20:53:36 +0100 (Wed, 12 May 2010) | 1 line
  
  Fix unused variable in test_factorial.
........


Modified:
   python/branches/py3k/   (props changed)
   python/branches/py3k/Lib/test/test_math.py

Modified: python/branches/py3k/Lib/test/test_math.py
==============================================================================
--- python/branches/py3k/Lib/test/test_math.py	(original)
+++ python/branches/py3k/Lib/test/test_math.py	Wed May 12 21:54:51 2010
@@ -372,7 +372,7 @@
             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)


More information about the Python-checkins mailing list