MCPcopy Index your code
hub / github.com/RustPython/RustPython / _compressed_tar

Method _compressed_tar

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

Source from the content-addressed store, hash-verified

1828 b"Very Silly candidate")
1829
1830 def _compressed_tar(self, compresslevel):
1831 fobj = io.BytesIO()
1832 with tarfile.open(tmpname, self.mode, fobj,
1833 compresslevel=compresslevel) as tarfl:
1834 tarfl.addfile(tarfile.TarInfo("foo"), io.BytesIO(self.source))
1835 return fobj
1836
1837 def _test_bz2_header(self, compresslevel):
1838 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