Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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_dir
Method · 0.45
test_extract_dir_backslash
Method · 0.45
test_write_dir
Method · 0.45
test_writestr_dir
Method · 0.45
test_extract_command
Method · 0.45
skip_if_missing
Function · 0.45
remove_testfn
Function · 0.45
cleanup_temp_dir
Function · 0.45
get_files
Method · 0.45
restore_files
Method · 0.45
setUp
Method · 0.45
make_module
Method · 0.45
Calls
1
endswith
Method · 0.45
Tested by
no test coverage detected