def testReadBadFile(self):
    self.createTempFile(streams=0, suffix=self.BAD_DATA)
    with BZ2File(self.filename) as bz2f:
        self.assertRaises(OSError, bz2f.read)
def testReadBadFile(self):
    self.createTempFile(streams=0, suffix=self.BAD_DATA)
    with BZ2File(self.filename) as bz2f:
        self.assertRaises(OSError, bz2f.read)