mirror of
https://github.com/python/cpython.git
synced 2025-07-29 14:15:07 +00:00
Fix unused variable in test_factorial.
This commit is contained in:
parent
f09bc66083
commit
62f7e8b0b8
1 changed files with 1 additions and 1 deletions
|
@ -375,7 +375,7 @@ class MathTests(unittest.TestCase):
|
|||
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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue