Lines Matching refs:decompress

32         return bz2.decompress(data)
655 data = bz2.decompress(compressed)
674 self.assertRaises(TypeError, bz2d.decompress)
675 text = bz2d.decompress(self.DATA)
686 text += bz2d.decompress(str)
693 text = bz2d.decompress(self.DATA+unused_data)
699 text = bz2d.decompress(self.DATA)
700 self.assertRaises(EOFError, bz2d.decompress, b"anything")
701 self.assertRaises(EOFError, bz2d.decompress, b"")
712 decompressed = bz2d.decompress(compressed)
731 out.append(bzd.decompress(self.BIG_DATA[:len_],
737 out.append(bzd.decompress(b'', max_length=max_length))
742 out.append(bzd.decompress(self.BIG_DATA[len_:],
748 out.append(bzd.decompress(b'', max_length=max_length))
762 self.assertEqual(bzd.decompress(self.DATA[:100],
767 out.append(bzd.decompress(b'', 2))
771 out.append(bzd.decompress(self.DATA[100:105], 15))
774 out.append(bzd.decompress(self.DATA[105:]))
784 self.assertEqual(bzd.decompress(self.DATA[:200],
786 out.append(bzd.decompress(b''))
789 out.append(bzd.decompress(self.DATA[200:280], 2))
792 out.append(bzd.decompress(self.DATA[280:300], 2))
795 out.append(bzd.decompress(self.DATA[300:]))
805 out.append(bzd.decompress(self.DATA[:200], 5))
808 out.append(bzd.decompress(self.DATA[200:300], 5))
811 out.append(bzd.decompress(self.DATA[300:]))
816 self.assertRaises(Exception, bzd.decompress, self.BAD_DATA * 30)
818 self.assertRaises(Exception, bzd.decompress, self.BAD_DATA * 30)
840 text = bz2.decompress(self.DATA)
844 text = bz2.decompress(b"")
848 text = bz2.decompress(self.EMPTY_DATA)
852 self.assertRaises(ValueError, bz2.decompress, self.DATA[:-10])
855 self.assertRaises(OSError, bz2.decompress, self.BAD_DATA)
858 text = bz2.decompress(self.DATA * 5)
862 text = bz2.decompress(self.DATA + self.BAD_DATA)
866 text = bz2.decompress(self.DATA * 5 + self.BAD_DATA)