MCPcopy Index your code
hub / github.com/python/cpython / testCompressChunks10

Method testCompressChunks10

Lib/test/test_bz2.py:845–856  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

843 self.assertEqual(data, self.EMPTY_DATA)
844
845 def testCompressChunks10(self):
846 bz2c = BZ2Compressor()
847 n = 0
848 data = b''
849 while True:
850 str = self.TEXT[n*10:(n+1)*10]
851 if not str:
852 break
853 data += bz2c.compress(str)
854 n += 1
855 data += bz2c.flush()
856 self.assertEqual(ext_decompress(data), self.TEXT)
857
858 @support.skip_if_pgo_task
859 @bigmemtest(size=_4G + 100, memuse=2)

Callers

nothing calls this directly

Calls 4

ext_decompressFunction · 0.85
compressMethod · 0.45
flushMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected