Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ close
Method
close
Lib/test/test_io/utils.py:151–154 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
149
closed = 0
150
151
def
close(self):
152
if
not self.closed:
153
self.closed = 1
154
raise
OSError
155
156
class
CCloseFailureIO(CloseFailureIO, io.RawIOBase):
157
pass
Callers
15
threaded_import_hangers.py
File · 0.45
child
Method · 0.45
test_fastpath_cache_cleared_in_forked_child
Method · 0.45
from_subinterp
Method · 0.45
check_interrupted_write
Method · 0.45
check_reentrant_write
Method · 0.45
check_interrupted_read_retry
Method · 0.45
check_interrupted_write_retry
Method · 0.45
tearDown
Method · 0.45
testWeakRefs
Method · 0.45
testReadintoByteArray
Method · 0.45
_testReadintoMemoryview
Method · 0.45
Calls
no outgoing calls
Tested by
15
child
Method · 0.36
test_fastpath_cache_cleared_in_forked_child
Method · 0.36
check_interrupted_write
Method · 0.36
check_reentrant_write
Method · 0.36
check_interrupted_read_retry
Method · 0.36
check_interrupted_write_retry
Method · 0.36
tearDown
Method · 0.36
testWeakRefs
Method · 0.36
testReadintoByteArray
Method · 0.36
_testReadintoMemoryview
Method · 0.36
_testReadintoArray
Method · 0.36
testWritelinesList
Method · 0.36