MCPcopy Create free account
hub / github.com/python/cpython / isfile

Method isfile

Lib/test/test_unittest/test_discovery.py:69–71  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

67 self.addCleanup(restore_isdir)
68
69 def isfile(path):
70 # another_dir is not a package and so shouldn't be recursed into
71 return not path.endswith('dir') and not 'another_dir' in path
72 os.path.isfile = isfile
73 self.addCleanup(restore_isfile)
74

Callers 12

data_fileFunction · 0.45
check_fileMethod · 0.45
test_extract_commandMethod · 0.45
test_makefile.pyFile · 0.45
test_findMethod · 0.45
remove_testfnFunction · 0.45
restore_filesMethod · 0.45
setUpMethod · 0.45
test_file_linkMethod · 0.45
test_appexeclinkMethod · 0.45
test_access_deniedMethod · 0.45

Calls 1

endswithMethod · 0.45

Tested by

no test coverage detected