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

Method test_non_existent_tarfile

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

Source from the content-addressed store, hash-verified

456 tar.close()
457
458 def test_non_existent_tarfile(self):
459 # Test for issue11513: prevent non-existent gzipped tarfiles raising
460 # multiple exceptions.
461 with self.assertRaisesRegex(FileNotFoundError, "xxx"):
462 tarfile.open("xxx", self.mode)
463
464 def test_null_tarfile(self):
465 # 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