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)
341 ddata = lzma.decompress(cdata)
357 ddata = lzd.decompress(cdata)
396 self.assertRaises(TypeError, lzma.decompress)
397 self.assertRaises(TypeError, lzma.decompress, [])
398 self.assertRaises(TypeError, lzma.decompress, b"", format="lzma")
399 self.assertRaises(TypeError, lzma.decompress, b"", memlimit=7.3e9)
401 lzma.decompress(b"", format=lzma.FORMAT_RAW, filters={})
404 lzma.decompress(b"", format=lzma.FORMAT_RAW, memlimit=0x1000000)
407 lzma.decompress(b"", filters=FILTERS_RAW_1)
409 lzma.decompress(b"", format=lzma.FORMAT_XZ, filters=FILTERS_RAW_1)
411 lzma.decompress(
416 lzma.decompress(COMPRESSED_XZ, memlimit=1024)
418 lzma.decompress(
421 lzma.decompress(
427 ddata = lzma.decompress(COMPRESSED_XZ)
430 ddata = lzma.decompress(COMPRESSED_ALONE)
433 ddata = lzma.decompress(COMPRESSED_XZ, lzma.FORMAT_XZ)
436 ddata = lzma.decompress(COMPRESSED_ALONE, lzma.FORMAT_ALONE)
439 ddata = lzma.decompress(
443 ddata = lzma.decompress(
447 ddata = lzma.decompress(
451 ddata = lzma.decompress(
456 self.assertRaises(LZMAError, lzma.decompress, COMPRESSED_XZ[:128])
457 self.assertRaises(LZMAError, lzma.decompress, COMPRESSED_ALONE[:128])
458 self.assertRaises(LZMAError, lzma.decompress, COMPRESSED_RAW_1[:128],
460 self.assertRaises(LZMAError, lzma.decompress, COMPRESSED_RAW_2[:128],
462 self.assertRaises(LZMAError, lzma.decompress, COMPRESSED_RAW_3[:128],
464 self.assertRaises(LZMAError, lzma.decompress, COMPRESSED_RAW_4[:128],
469 lzma.decompress(COMPRESSED_BOGUS)
471 lzma.decompress(COMPRESSED_RAW_1)
473 lzma.decompress(COMPRESSED_ALONE, format=lzma.FORMAT_XZ)
475 lzma.decompress(COMPRESSED_XZ, format=lzma.FORMAT_ALONE)
477 lzma.decompress(COMPRESSED_XZ, format=lzma.FORMAT_RAW,
484 ddata = lzma.decompress(cdata)
488 ddata = lzma.decompress(cdata)
492 ddata = lzma.decompress(cdata)
496 ddata = lzma.decompress(cdata, lzma.FORMAT_RAW, filters=FILTERS_RAW_4)
502 ddata = lzma.decompress(COMPRESSED_XZ + COMPRESSED_ALONE)
508 ddata = lzma.decompress(COMPRESSED_XZ + COMPRESSED_BOGUS)
512 ddata = lzma.decompress(COMPRESSED_XZ * 3 + COMPRESSED_BOGUS)
1207 entire = d1.decompress(ISSUE_21872_DAT, max_length=-1)
1219 out1 = d2.decompress(ISSUE_21872_DAT, max_length=13149)
1225 out2 = d2.decompress(b'')
1239 file_data = lzma.decompress(bio.getvalue())
1243 file_data = lzma.decompress(bio.getvalue())
1254 file_data = lzma.decompress(bio.getvalue()).decode("ascii")
1258 file_data = lzma.decompress(bio.getvalue()).decode("ascii")
1266 file_data = lzma.decompress(f.read())
1281 file_data = lzma.decompress(f.read())
1307 file_data = lzma.decompress(bio.getvalue(), **options)
1317 file_data = lzma.decompress(bio.getvalue()).decode("utf-16-le")