Author: Justin Peel <notmuchtot...@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) _______________________________________________ pypy-commit mailing list pypy-commit@python.org http://mail.python.org/mailman/listinfo/pypy-commit