def testEOFError(self):
    bz2d = BZ2Decompressor()
    text = bz2d.decompress(self.DATA)
    self.assertRaises(EOFError, bz2d.decompress, b'anything')
    self.assertRaises(EOFError, bz2d.decompress, b'')
def testEOFError(self):
    bz2d = BZ2Decompressor()
    text = bz2d.decompress(self.DATA)
    self.assertRaises(EOFError, bz2d.decompress, b'anything')
    self.assertRaises(EOFError, bz2d.decompress, b)