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

Method isdir

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

Source from the content-addressed store, hash-verified

62 self.addCleanup(restore_listdir)
63
64 def isdir(path):
65 return path.endswith('dir')
66 os.path.isdir = isdir
67 self.addCleanup(restore_isdir)
68

Callers 15

test_extract_dirMethod · 0.45
test_write_dirMethod · 0.45
test_writestr_dirMethod · 0.45
test_extract_commandMethod · 0.45
skip_if_missingFunction · 0.45
remove_testfnFunction · 0.45
cleanup_temp_dirFunction · 0.45
get_filesMethod · 0.45
restore_filesMethod · 0.45
setUpMethod · 0.45
make_moduleMethod · 0.45

Calls 1

endswithMethod · 0.45

Tested by

no test coverage detected