From: Guido van Rossum Date: Thu, 27 Feb 2003 18:39:18 +0000 (+0000) Subject: Use floor division (//). X-Git-Tag: v2.3c1~1666 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f359410ce22749da69b8adb5a3c23f78876292c6;p=python Use floor division (//). --- diff --git a/Lib/test/test_zlib.py b/Lib/test/test_zlib.py index 44a58cca1e..686bc4c1b1 100644 --- a/Lib/test/test_zlib.py +++ b/Lib/test/test_zlib.py @@ -232,7 +232,7 @@ class CompressObjectTestCase(unittest.TestCase): 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 @@ class CompressObjectTestCase(unittest.TestCase): 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 @@ class CompressObjectTestCase(unittest.TestCase): 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))