]> granicus.if.org Git - python/commitdiff
Use floor division (//).
authorGuido van Rossum <guido@python.org>
Thu, 27 Feb 2003 18:39:18 +0000 (18:39 +0000)
committerGuido van Rossum <guido@python.org>
Thu, 27 Feb 2003 18:39:18 +0000 (18:39 +0000)
Lib/test/test_zlib.py

index 44a58cca1ecc49299169a7dd42c2770a8c7fab8c..686bc4c1b14e2e6962d6124b5696f84dde126d6b 100644 (file)
@@ -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))