Lines Matching refs:preset
27 self.assertRaises(TypeError, LZMACompressor, preset="asdf")
33 LZMACompressor(preset=7, filters=[{"id": lzma.FILTER_LZMA2}])
388 self.assertRaises(TypeError, lzma.compress, b"", preset="blah")
392 lzma.compress(b"", preset=3, filters=[{"id": lzma.FILTER_LZMA2}])
631 LZMAFile(BytesIO(), "w", preset=4.39)
633 LZMAFile(BytesIO(), "w", preset=10)
635 LZMAFile(BytesIO(), "w", preset=23)
637 LZMAFile(BytesIO(), "w", preset=-1)
639 LZMAFile(BytesIO(), "w", preset=-7)
641 LZMAFile(BytesIO(), "w", preset="foo")
644 LZMAFile(BytesIO(COMPRESSED_XZ), preset=3)
666 preset=6, filters=FILTERS_RAW_1)
998 bomb = lzma.compress(b'\0' * int(2e6), preset=6)