Lines Matching refs:LZMACompressor
16 from lzma import LZMACompressor, LZMADecompressor, LZMAError, LZMAFile
24 self.assertRaises(TypeError, LZMACompressor, [])
25 self.assertRaises(TypeError, LZMACompressor, format=3.45)
26 self.assertRaises(TypeError, LZMACompressor, check="")
27 self.assertRaises(TypeError, LZMACompressor, preset="asdf")
28 self.assertRaises(TypeError, LZMACompressor, filters=3)
30 self.assertRaises(ValueError, LZMACompressor, format=lzma.FORMAT_AUTO)
33 LZMACompressor(preset=7, filters=[{"id": lzma.FILTER_LZMA2}])
49 lzc = LZMACompressor()
64 self.assertRaises(TypeError, LZMACompressor, filters=[b"wobsite"])
65 self.assertRaises(ValueError, LZMACompressor, filters=[{"xyzzy": 3}])
66 self.assertRaises(ValueError, LZMACompressor, filters=[{"id": 98765}])
68 LZMACompressor(filters=[{"id": lzma.FILTER_LZMA2, "foo": 0}])
70 LZMACompressor(filters=[{"id": lzma.FILTER_DELTA, "foo": 0}])
72 LZMACompressor(filters=[{"id": lzma.FILTER_X86, "foo": 0}])
277 lzc = LZMACompressor()
283 lzc = LZMACompressor(lzma.FORMAT_ALONE)
289 lzc = LZMACompressor(lzma.FORMAT_RAW, filters=FILTERS_RAW_4)
295 lzc = LZMACompressor(lzma.FORMAT_RAW, filters=FILTERS_RAW_4)
305 lzc = LZMACompressor()
315 lzc = LZMACompressor()
339 lzc = LZMACompressor()
367 pickle.dumps(LZMACompressor(), proto)