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

Method _testfunc_file

Lib/test/test_tarfile.py:1004–1010  ·  view source on GitHub ↗
(self, name, mode)

Source from the content-addressed store, hash-verified

1002
1003class DetectReadTest(TarTest, unittest.TestCase):
1004 def _testfunc_file(self, name, mode):
1005 try:
1006 tar = tarfile.open(name, mode)
1007 except tarfile.ReadError as e:
1008 self.fail()
1009 else:
1010 tar.close()
1011
1012 def _testfunc_fileobj(self, name, mode):
1013 try:

Callers 1

Calls 3

openMethod · 0.45
failMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected