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

Method _testfunc_file

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

Source from the content-addressed store, hash-verified

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

Callers 1

Calls 3

openMethod · 0.45
failMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected