Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ close
Method
close
Lib/test/test_interpreters/utils.py:585–589 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
583
r_out, w_out = self.pipe()
584
585
def
close():
586
_close_file(r_in)
587
_close_file(w_in)
588
_close_file(r_out)
589
_close_file(w_out)
590
591
# Start running (and wait).
592
script = dedent(f
""
"
Callers
15
test_iscoroutine
Method · 0.45
test_isawaitable
Method · 0.45
test_closed_after_close
Method · 0.45
tearDown
Method · 0.45
test_closed_after_close
Method · 0.45
test_list_all_closed
Method · 0.45
test_is_closed
Method · 0.45
_close_file
Function · 0.45
clean_up_interpreters
Function · 0.45
ensure_closed
Method · 0.45
test_after_destroy_all
Method · 0.45
test_after_destroy_some
Method · 0.45
Calls
1
_close_file
Function · 0.85
Tested by
15
test_iscoroutine
Method · 0.36
test_isawaitable
Method · 0.36
test_closed_after_close
Method · 0.36
tearDown
Method · 0.36
test_closed_after_close
Method · 0.36
test_list_all_closed
Method · 0.36
test_is_closed
Method · 0.36
test_after_destroy_all
Method · 0.36
test_after_destroy_some
Method · 0.36
test_after_destroying
Method · 0.36
test_already_destroyed
Method · 0.36
test_basic
Method · 0.36