summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2003-02-27 18:39:18 (GMT)
committerGuido van Rossum <guido@python.org>2003-02-27 18:39:18 (GMT)
commitf359410ce22749da69b8adb5a3c23f78876292c6 (patch)
treefb78e02f3a44332b3fdab65bc9ccd4e0086c8e1d /Lib
parente46d1559c95f018a3e92c35d0e35768774a0f2fe (diff)
downloadcpython-f359410ce22749da69b8adb5a3c23f78876292c6.zip
cpython-f359410ce22749da69b8adb5a3c23f78876292c6.tar.gz
cpython-f359410ce22749da69b8adb5a3c23f78876292c6.tar.bz2
Use floor division (//).
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_zlib.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/test/test_zlib.py b/Lib/test/test_zlib.py
index 44a58cc..686bc4c 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))