mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Use floor division operator.
This commit is contained in:
parent
4837a223ee
commit
ffdb8bb99c
7 changed files with 8 additions and 8 deletions
|
@ -79,7 +79,7 @@ class TestBasicOps(unittest.TestCase):
|
|||
def factorial(n):
|
||||
return reduce(int.__mul__, xrange(1, n), 1)
|
||||
for k in xrange(n):
|
||||
expected = factorial(n) / factorial(n-k)
|
||||
expected = factorial(n) // factorial(n-k)
|
||||
perms = {}
|
||||
for i in xrange(trials):
|
||||
perms[tuple(self.gen.sample(pop, k))] = None
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue