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

Method test_empty

Lib/test/test_tarfile.py:2587–2590  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2585 self._test()
2586
2587 def test_empty(self):
2588 tarfile.open(self.tarname, "w:").close()
2589 self._add_testfile()
2590 self._test()
2591
2592 def test_empty_fileobj(self):
2593 fobj = io.BytesIO(b"\0" * 1024)

Callers

nothing calls this directly

Calls 4

_add_testfileMethod · 0.95
_testMethod · 0.95
closeMethod · 0.45
openMethod · 0.45

Tested by

no test coverage detected