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

Method test_non_existent_tarfile

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

Source from the content-addressed store, hash-verified

458 tar.close()
459
460 def test_non_existent_tarfile(self):
461 # Test for issue11513: prevent non-existent gzipped tarfiles raising
462 # multiple exceptions.
463 with self.assertRaisesRegex(FileNotFoundError, "xxx"):
464 tarfile.open("xxx", self.mode)
465
466 def test_null_tarfile(self):
467 # Test for issue6123: Allow opening empty archives.

Callers

nothing calls this directly

Calls 2

assertRaisesRegexMethod · 0.80
openMethod · 0.45

Tested by

no test coverage detected