Lines Matching refs:decompress
58 self.assertRaises(TypeError, lzd.decompress)
59 self.assertRaises(TypeError, lzd.decompress, b"foo", b"bar")
60 lzd.decompress(empty)
61 self.assertRaises(EOFError, lzd.decompress, b"quux")
76 lzd.decompress(COMPRESSED_XZ)
77 self.assertRaises(EOFError, lzd.decompress, b"nyan")
81 self.assertRaises(LZMAError, lzd.decompress, COMPRESSED_XZ)
84 self.assertRaises(LZMAError, lzd.decompress, COMPRESSED_XZ)
87 self.assertRaises(LZMAError, lzd.decompress, COMPRESSED_ALONE)
93 out = lzd.decompress(data)
135 out.append(lzd.decompress(COMPRESSED_XZ[i:i+10]))
147 out.append(lzd.decompress(b''))
148 out.append(lzd.decompress(b''))
149 out.append(lzd.decompress(b''))
150 out.append(lzd.decompress(COMPRESSED_XZ[i:i+10]))
164 out.append(lzd.decompress(COMPRESSED_XZ[:len_],
170 out.append(lzd.decompress(b'', max_length=max_length))
175 out.append(lzd.decompress(COMPRESSED_XZ[len_:],
181 out.append(lzd.decompress(b'', max_length=max_length))
196 self.assertEqual(lzd.decompress(COMPRESSED_XZ[:100],
201 out.append(lzd.decompress(b'', 2))
205 out.append(lzd.decompress(COMPRESSED_XZ[100:105], 15))
208 out.append(lzd.decompress(COMPRESSED_XZ[105:]))
218 self.assertEqual(lzd.decompress(COMPRESSED_XZ[:200],
220 out.append(lzd.decompress(b''))
223 out.append(lzd.decompress(COMPRESSED_XZ[200:280], 2))
226 out.append(lzd.decompress(COMPRESSED_XZ[280:300], 2))
229 out.append(lzd.decompress(COMPRESSED_XZ[300:]))
239 out.append(lzd.decompress(COMPRESSED_XZ[:200], 5))
242 out.append(lzd.decompress(COMPRESSED_XZ[200:300], 5))
245 out.append(lzd.decompress(COMPRESSED_XZ[300:]))
256 self.assertRaises(LZMAError, lzd.decompress, COMPRESSED_RAW_1)
259 self.assertRaises(LZMAError, lzd.decompress, COMPRESSED_ALONE)
262 self.assertRaises(LZMAError, lzd.decompress, COMPRESSED_XZ)
265 self.assertRaises(LZMAError, lzd.decompress, COMPRESSED_XZ)
270 self.assertRaises(LZMAError, lzd.decompress, COMPRESSED_RAW_1)
272 self.assertRaises(LZMAError, lzd.decompress, COMPRESSED_RAW_1)
340 ddata = lzma.decompress(cdata)
355 ddata = lzd.decompress(cdata)
394 self.assertRaises(TypeError, lzma.decompress)
395 self.assertRaises(TypeError, lzma.decompress, [])
396 self.assertRaises(TypeError, lzma.decompress, b"", format="lzma")
397 self.assertRaises(TypeError, lzma.decompress, b"", memlimit=7.3e9)
399 lzma.decompress(b"", format=lzma.FORMAT_RAW, filters={})
402 lzma.decompress(b"", format=lzma.FORMAT_RAW, memlimit=0x1000000)
405 lzma.decompress(b"", filters=FILTERS_RAW_1)
407 lzma.decompress(b"", format=lzma.FORMAT_XZ, filters=FILTERS_RAW_1)
409 lzma.decompress(
414 lzma.decompress(COMPRESSED_XZ, memlimit=1024)
416 lzma.decompress(
419 lzma.decompress(
425 ddata = lzma.decompress(COMPRESSED_XZ)
428 ddata = lzma.decompress(COMPRESSED_ALONE)
431 ddata = lzma.decompress(COMPRESSED_XZ, lzma.FORMAT_XZ)
434 ddata = lzma.decompress(COMPRESSED_ALONE, lzma.FORMAT_ALONE)
437 ddata = lzma.decompress(
441 ddata = lzma.decompress(
445 ddata = lzma.decompress(
449 ddata = lzma.decompress(
454 self.assertRaises(LZMAError, lzma.decompress, COMPRESSED_XZ[:128])
455 self.assertRaises(LZMAError, lzma.decompress, COMPRESSED_ALONE[:128])
456 self.assertRaises(LZMAError, lzma.decompress, COMPRESSED_RAW_1[:128],
458 self.assertRaises(LZMAError, lzma.decompress, COMPRESSED_RAW_2[:128],
460 self.assertRaises(LZMAError, lzma.decompress, COMPRESSED_RAW_3[:128],
462 self.assertRaises(LZMAError, lzma.decompress, COMPRESSED_RAW_4[:128],
467 lzma.decompress(COMPRESSED_BOGUS)
469 lzma.decompress(COMPRESSED_RAW_1)
471 lzma.decompress(COMPRESSED_ALONE, format=lzma.FORMAT_XZ)
473 lzma.decompress(COMPRESSED_XZ, format=lzma.FORMAT_ALONE)
475 lzma.decompress(COMPRESSED_XZ, format=lzma.FORMAT_RAW,
482 ddata = lzma.decompress(cdata)
486 ddata = lzma.decompress(cdata)
490 ddata = lzma.decompress(cdata)
494 ddata = lzma.decompress(cdata, lzma.FORMAT_RAW, filters=FILTERS_RAW_4)
500 ddata = lzma.decompress(COMPRESSED_XZ + COMPRESSED_ALONE)
506 ddata = lzma.decompress(COMPRESSED_XZ + COMPRESSED_BOGUS)
510 ddata = lzma.decompress(COMPRESSED_XZ * 3 + COMPRESSED_BOGUS)
1207 file_data = lzma.decompress(bio.getvalue())
1211 file_data = lzma.decompress(bio.getvalue())
1222 file_data = lzma.decompress(bio.getvalue()).decode("ascii")
1226 file_data = lzma.decompress(bio.getvalue()).decode("ascii")
1234 file_data = lzma.decompress(f.read())
1249 file_data = lzma.decompress(f.read())
1275 file_data = lzma.decompress(bio.getvalue(), **options)
1285 file_data = lzma.decompress(bio.getvalue()).decode("utf-16-le")