summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_math.py
diff options
context:
space:
mode:
authorMark Dickinson <dickinsm@gmail.com>2010-05-12 19:54:51 (GMT)
committerMark Dickinson <dickinsm@gmail.com>2010-05-12 19:54:51 (GMT)
commit91f021fb702ba1a98b02e8c9996ee0eb51714d99 (patch)
treed13c6082bde54f221fe97a3bfc0886d02a81eaf2 /Lib/test/test_math.py
parent525807bf726f720dfa13f9ce9544fa1793404e68 (diff)
downloadcpython-91f021fb702ba1a98b02e8c9996ee0eb51714d99.zip
cpython-91f021fb702ba1a98b02e8c9996ee0eb51714d99.tar.gz
cpython-91f021fb702ba1a98b02e8c9996ee0eb51714d99.tar.bz2
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. ........
Diffstat (limited to 'Lib/test/test_math.py')
-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)