MCPcopy 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_iscoroutineMethod · 0.45
test_isawaitableMethod · 0.45
tearDownMethod · 0.45
test_list_all_closedMethod · 0.45
test_is_closedMethod · 0.45
_close_fileFunction · 0.45
clean_up_interpretersFunction · 0.45
ensure_closedMethod · 0.45

Calls 1

_close_fileFunction · 0.85

Tested by 15

test_iscoroutineMethod · 0.36
test_isawaitableMethod · 0.36
tearDownMethod · 0.36
test_list_all_closedMethod · 0.36
test_is_closedMethod · 0.36
test_after_destroyingMethod · 0.36
test_basicMethod · 0.36