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

Method test_missing_fileobj

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

Source from the content-addressed store, hash-verified

1728 self.assertFalse(f.closed)
1729
1730 def test_missing_fileobj(self):
1731 with tarfile.open(tmpname, self.mode) as tar:
1732 tarinfo = tar.gettarinfo(tarname)
1733 with self.assertRaises(ValueError):
1734 tar.addfile(tarinfo)
1735
1736
1737class GzipWriteTest(GzipTest, WriteTest):

Callers

nothing calls this directly

Calls 4

gettarinfoMethod · 0.80
addfileMethod · 0.80
openMethod · 0.45
assertRaisesMethod · 0.45

Tested by

no test coverage detected