MCPcopy 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
156class CCloseFailureIO(CloseFailureIO, io.RawIOBase):
157 pass

Callers 15

childMethod · 0.45
from_subinterpMethod · 0.45
check_reentrant_writeMethod · 0.45
tearDownMethod · 0.45
testWeakRefsMethod · 0.45
testReadintoByteArrayMethod · 0.45

Calls

no outgoing calls

Tested by 15

childMethod · 0.36
check_reentrant_writeMethod · 0.36
tearDownMethod · 0.36
testWeakRefsMethod · 0.36
testReadintoByteArrayMethod · 0.36
_testReadintoArrayMethod · 0.36
testWritelinesListMethod · 0.36