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

Method _compressed_tar

Lib/test/test_tarfile.py:1847–1852  ·  view source on GitHub ↗
(self, compresslevel)

Source from the content-addressed store, hash-verified

1845 b"Very Silly candidate")
1846
1847 def _compressed_tar(self, compresslevel):
1848 fobj = io.BytesIO()
1849 with tarfile.open(tmpname, self.mode, fobj,
1850 compresslevel=compresslevel) as tarfl:
1851 tarfl.addfile(tarfile.TarInfo("foo"), io.BytesIO(self.source))
1852 return fobj
1853
1854 def _test_bz2_header(self, compresslevel):
1855 fobj = self._compressed_tar(compresslevel)

Callers 2

_test_bz2_headerMethod · 0.95
_test_gz_headerMethod · 0.95

Calls 2

addfileMethod · 0.80
openMethod · 0.45

Tested by

no test coverage detected