Lines Matching full:bz2
15 bz2 = import_module('bz2') variable
16 from bz2 import BZ2File, BZ2Compressor, BZ2Decompressor
38 ret = bz2.decompress(data)
44 return bz2.decompress(data)
256 # Bug #1194181: bz2.BZ2File opened for write with mode "U"
304 with bz2.BZ2File(self.filename, 'wb') as f:
314 with bz2.BZ2File(self.filename, 'wb') as f:
319 with bz2.BZ2File(self.filename, 'rb') as f:
336 f = bz2.BZ2File(self.filename)
373 bz2c = bz2.BZ2Compressor()
425 compressed = bz2.compress("a" * _4G)
426 text = bz2.BZ2Decompressor().decompress(compressed)
436 data = bz2.compress(self.TEXT)
441 text = bz2.compress('')
446 text = bz2.decompress(self.DATA)
451 text = bz2.decompress("")
455 # "Test decompress() of minimal bz2 data to empty string"
456 text = bz2.decompress(self.EMPTY_DATA)
461 self.assertRaises(ValueError, bz2.decompress, self.DATA[:-10])
466 data = bz2.compress(text)
477 compressed = bz2.compress("a" * _4G)
478 text = bz2.decompress(compressed)