MCPcopy Index your code
hub / github.com/RustPython/RustPython / 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 15

ok_commandMethod · 0.45
readprofileMethod · 0.45
is_python_buildFunction · 0.45
send_headMethod · 0.45
run_cgiMethod · 0.45
is_fileMethod · 0.45
is_fileMethod · 0.45
shouldRolloverMethod · 0.45
shouldRolloverMethod · 0.45
discoverMethod · 0.45
_find_test_pathMethod · 0.45
_convert_nameFunction · 0.45

Calls 1

endswithMethod · 0.45

Tested by

no test coverage detected