[pypy-commit] pypy default: change bz2 test so that it reads chunks which don't divide evenly into test data's length
justinpeel
noreply at buildbot.pypy.org
Wed Aug 31 21:33:15 CEST 2011
Author: Justin Peel <notmuchtotell at gmail.com>
Branch:
Changeset: r46956:13c94c0591c3
Date: 2011-08-31 13:32 -0600
http://bitbucket.org/pypy/pypy/changeset/13c94c0591c3/
Log: change bz2 test so that it reads chunks which don't divide evenly
into test data's length
diff --git a/pypy/module/bz2/test/test_bz2_file.py b/pypy/module/bz2/test/test_bz2_file.py
--- a/pypy/module/bz2/test/test_bz2_file.py
+++ b/pypy/module/bz2/test/test_bz2_file.py
@@ -274,14 +274,14 @@
pass
del bz2f # delete from this frame, which is captured in the traceback
- def test_read_chunk10(self):
+ def test_read_chunk9(self):
from bz2 import BZ2File
self.create_temp_file()
bz2f = BZ2File(self.temppath)
text_read = ""
while True:
- data = bz2f.read(10)
+ data = bz2f.read(9) # 9 doesn't divide evenly into data length
if not data:
break
text_read = "%s%s" % (text_read, data)
More information about the pypy-commit
mailing list