mirror of
https://github.com/python/cpython.git
synced 2025-11-01 14:11:41 +00:00
Use floor division (//).
This commit is contained in:
parent
e46d1559c9
commit
f359410ce2
1 changed files with 3 additions and 3 deletions
|
|
@ -232,7 +232,7 @@ def test_decompimax(self,sizes=[128],flush=True,source=None,cx=256,dcx=64):
|
|||
bufs = []
|
||||
cb = combuf
|
||||
while cb:
|
||||
#max_length = 1 + len(cb)/10
|
||||
#max_length = 1 + len(cb)//10
|
||||
chunk = dco.decompress(cb, dcx)
|
||||
self.failIf(len(chunk) > dcx,
|
||||
'chunk too big (%d>%d)' % (len(chunk), dcx))
|
||||
|
|
@ -268,7 +268,7 @@ def test_decompressmaxlen(self):
|
|||
bufs = []
|
||||
cb = combuf
|
||||
while cb:
|
||||
max_length = 1 + len(cb)/10
|
||||
max_length = 1 + len(cb)//10
|
||||
chunk = dco.decompress(cb, max_length)
|
||||
self.failIf(len(chunk) > max_length,
|
||||
'chunk too big (%d>%d)' % (len(chunk),max_length))
|
||||
|
|
@ -295,7 +295,7 @@ def test_decompressmaxlenflushless(self):
|
|||
bufs = []
|
||||
cb = combuf
|
||||
while cb:
|
||||
max_length = 1 + len(cb)/10
|
||||
max_length = 1 + len(cb)//10
|
||||
chunk = dco.decompress(cb, max_length)
|
||||
self.failIf(len(chunk) > max_length,
|
||||
'chunk too big (%d>%d)' % (len(chunk),max_length))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue