Commits

Justin Peel committed 13c94c0

change bz2 test so that it reads chunks which don't divide evenly into test data's length

  • Participants
  • Parent commits 0d75ab3

Comments (0)

Files changed (1)

File pypy/module/bz2/test/test_bz2_file.py

             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)