Lines Matching refs:COMPRESSED_XZ
79 lzd.decompress(COMPRESSED_XZ)
84 self.assertRaises(LZMAError, lzd.decompress, COMPRESSED_XZ)
87 self.assertRaises(LZMAError, lzd.decompress, COMPRESSED_XZ)
104 self._test_decompressor(lzd, COMPRESSED_XZ, lzma.CHECK_CRC64)
111 self._test_decompressor(lzd, COMPRESSED_XZ, lzma.CHECK_CRC64)
136 for i in range(0, len(COMPRESSED_XZ), 10):
138 out.append(lzd.decompress(COMPRESSED_XZ[i:i+10]))
148 for i in range(0, len(COMPRESSED_XZ), 10):
153 out.append(lzd.decompress(COMPRESSED_XZ[i:i+10]))
166 len_ = len(COMPRESSED_XZ) // 2
167 out.append(lzd.decompress(COMPRESSED_XZ[:len_],
178 out.append(lzd.decompress(COMPRESSED_XZ[len_:],
199 self.assertEqual(lzd.decompress(COMPRESSED_XZ[:100],
208 out.append(lzd.decompress(COMPRESSED_XZ[100:105], 15))
211 out.append(lzd.decompress(COMPRESSED_XZ[105:]))
221 self.assertEqual(lzd.decompress(COMPRESSED_XZ[:200],
226 out.append(lzd.decompress(COMPRESSED_XZ[200:280], 2))
229 out.append(lzd.decompress(COMPRESSED_XZ[280:300], 2))
232 out.append(lzd.decompress(COMPRESSED_XZ[300:]))
242 out.append(lzd.decompress(COMPRESSED_XZ[:200], 5))
245 out.append(lzd.decompress(COMPRESSED_XZ[200:300], 5))
248 out.append(lzd.decompress(COMPRESSED_XZ[300:]))
254 self._test_decompressor(lzd, COMPRESSED_XZ + extra, lzma.CHECK_CRC64,
265 self.assertRaises(LZMAError, lzd.decompress, COMPRESSED_XZ)
268 self.assertRaises(LZMAError, lzd.decompress, COMPRESSED_XZ)
334 self._test_decompressor(lzd, COMPRESSED_XZ + COMPRESSED_ALONE,
419 lzma.decompress(COMPRESSED_XZ, memlimit=1024)
422 COMPRESSED_XZ, format=lzma.FORMAT_XZ, memlimit=1024)
430 ddata = lzma.decompress(COMPRESSED_XZ)
436 ddata = lzma.decompress(COMPRESSED_XZ, lzma.FORMAT_XZ)
459 self.assertRaises(LZMAError, lzma.decompress, COMPRESSED_XZ[:128])
478 lzma.decompress(COMPRESSED_XZ, format=lzma.FORMAT_ALONE)
480 lzma.decompress(COMPRESSED_XZ, format=lzma.FORMAT_RAW,
505 ddata = lzma.decompress(COMPRESSED_XZ + COMPRESSED_ALONE)
511 ddata = lzma.decompress(COMPRESSED_XZ + COMPRESSED_BOGUS)
515 ddata = lzma.decompress(COMPRESSED_XZ * 3 + COMPRESSED_BOGUS)
537 with LZMAFile(BytesIO(COMPRESSED_XZ)) as f:
548 with TempFile(filename, COMPRESSED_XZ):
557 with TempFile(TESTFN, COMPRESSED_XZ):
592 LZMAFile(BytesIO(COMPRESSED_XZ), (3, "x"))
594 LZMAFile(BytesIO(COMPRESSED_XZ), "")
596 LZMAFile(BytesIO(COMPRESSED_XZ), "xt")
598 LZMAFile(BytesIO(COMPRESSED_XZ), "x+")
600 LZMAFile(BytesIO(COMPRESSED_XZ), "rx")
602 LZMAFile(BytesIO(COMPRESSED_XZ), "wx")
604 LZMAFile(BytesIO(COMPRESSED_XZ), "rt")
606 LZMAFile(BytesIO(COMPRESSED_XZ), "r+")
608 LZMAFile(BytesIO(COMPRESSED_XZ), "wt")
610 LZMAFile(BytesIO(COMPRESSED_XZ), "w+")
612 LZMAFile(BytesIO(COMPRESSED_XZ), "rw")
624 LZMAFile(BytesIO(COMPRESSED_XZ), check=lzma.CHECK_NONE)
626 LZMAFile(BytesIO(COMPRESSED_XZ), check=lzma.CHECK_CRC32)
628 LZMAFile(BytesIO(COMPRESSED_XZ), check=lzma.CHECK_CRC64)
630 LZMAFile(BytesIO(COMPRESSED_XZ), check=lzma.CHECK_SHA256)
632 LZMAFile(BytesIO(COMPRESSED_XZ), check=lzma.CHECK_UNKNOWN)
649 LZMAFile(BytesIO(COMPRESSED_XZ), preset=3)
674 with BytesIO(COMPRESSED_XZ) as src:
684 with TempFile(TESTFN, COMPRESSED_XZ):
694 f = LZMAFile(BytesIO(COMPRESSED_XZ))
711 f = LZMAFile(BytesIO(COMPRESSED_XZ))
717 with TempFile(TESTFN, COMPRESSED_XZ):
727 f = LZMAFile(BytesIO(COMPRESSED_XZ))
743 src = BytesIO(COMPRESSED_XZ)
753 f = LZMAFile(BytesIO(COMPRESSED_XZ))
770 f = LZMAFile(BytesIO(COMPRESSED_XZ))
787 with LZMAFile(BytesIO(COMPRESSED_XZ)) as f:
792 with LZMAFile(BytesIO(COMPRESSED_XZ), format=lzma.FORMAT_XZ) as f:
816 with LZMAFile(BytesIO(COMPRESSED_XZ)) as f:
820 with LZMAFile(BytesIO(COMPRESSED_XZ), format=lzma.FORMAT_XZ) as f:
826 with LZMAFile(BytesIO(COMPRESSED_XZ)) as f:
837 with LZMAFile(BytesIO(COMPRESSED_XZ * 5)) as f:
839 with LZMAFile(BytesIO(COMPRESSED_XZ + COMPRESSED_ALONE)) as f:
849 _compression.BUFFER_SIZE = len(COMPRESSED_XZ)
851 with LZMAFile(BytesIO(COMPRESSED_XZ * 5)) as f:
857 with LZMAFile(BytesIO(COMPRESSED_XZ + COMPRESSED_BOGUS)) as f:
861 with LZMAFile(BytesIO(COMPRESSED_XZ * 5 + COMPRESSED_BOGUS)) as f:
865 with TempFile(TESTFN, COMPRESSED_XZ):
875 with TempFile(TESTFN, COMPRESSED_XZ):
881 with LZMAFile(BytesIO(COMPRESSED_XZ[:128])) as f:
887 truncated = COMPRESSED_XZ[:-12]
899 f = LZMAFile(BytesIO(COMPRESSED_XZ))
904 with LZMAFile(BytesIO(COMPRESSED_XZ)) as f:
912 with LZMAFile(BytesIO(COMPRESSED_XZ)) as f:
923 with LZMAFile(BytesIO(COMPRESSED_XZ)) as f:
927 with LZMAFile(BytesIO(COMPRESSED_XZ)) as f:
938 with LZMAFile(BytesIO(COMPRESSED_XZ * 5)) as f:
949 f = LZMAFile(BytesIO(COMPRESSED_XZ))
954 with LZMAFile(BytesIO(COMPRESSED_XZ)) as f:
958 with LZMAFile(BytesIO(COMPRESSED_XZ)) as f:
963 with LZMAFile(BytesIO(COMPRESSED_XZ)) as f:
976 with LZMAFile(BytesIO(COMPRESSED_XZ)) as f:
980 with LZMAFile(BytesIO(COMPRESSED_XZ), format=lzma.FORMAT_XZ) as f:
991 with LZMAFile(BytesIO(COMPRESSED_XZ)) as f:
998 with LZMAFile(BytesIO(COMPRESSED_XZ)) as f:
1103 with LZMAFile(BytesIO(COMPRESSED_XZ), "r") as f:
1120 with LZMAFile(BytesIO(COMPRESSED_XZ)) as f:
1125 with LZMAFile(BytesIO(COMPRESSED_XZ * 2)) as f:
1130 with LZMAFile(BytesIO(COMPRESSED_XZ)) as f:
1136 with LZMAFile(BytesIO(COMPRESSED_XZ)) as f:
1141 with LZMAFile(BytesIO(COMPRESSED_XZ)) as f:
1147 with LZMAFile(BytesIO(COMPRESSED_XZ * 2)) as f:
1153 with LZMAFile(BytesIO(COMPRESSED_XZ)) as f:
1158 with LZMAFile(BytesIO(COMPRESSED_XZ)) as f:
1164 with LZMAFile(BytesIO(COMPRESSED_XZ)) as f:
1170 f = LZMAFile(BytesIO(COMPRESSED_XZ))
1175 with LZMAFile(BytesIO(COMPRESSED_XZ)) as f:
1183 with LZMAFile(BytesIO(COMPRESSED_XZ)) as f:
1199 f = LZMAFile(BytesIO(COMPRESSED_XZ))
1245 with lzma.open(BytesIO(COMPRESSED_XZ), "rb") as f:
1260 with lzma.open(BytesIO(COMPRESSED_XZ), "rt", encoding="ascii") as f:
1488 COMPRESSED_XZ = (