Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ remove_files
Function
remove_files
Lib/test/test_import/__init__.py:149–155 ·
view source on GitHub ↗
(name)
Source
from the content-addressed store, hash-verified
147
148
149
def
remove_files(name):
150
for
f in (name +
".py"
,
151
name +
".pyc"
,
152
name +
".pyw"
,
153
name +
"$py.class"
):
154
unlink(f)
155
rmtree(
'__pycache__'
)
156
157
158
if
_testsinglephase is not None:
Callers
5
setUp
Method · 0.85
test_failing_import_sticks
Method · 0.85
test_failing_reload
Method · 0.85
test_file_to_source
Method · 0.85
test_timestamp_overflow
Method · 0.85
Calls
2
rmtree
Function · 0.90
unlink
Function · 0.85
Tested by
4
test_failing_import_sticks
Method · 0.68
test_failing_reload
Method · 0.68
test_file_to_source
Method · 0.68
test_timestamp_overflow
Method · 0.68
Used in the wild
real call sites across dependent graphs
searching dependent graphs…