MCPcopy Index your code
hub / github.com/python/cpython / read

Method read

Lib/test/test_io/utils.py:93–99  ·  view source on GitHub ↗
(self, n=None)

Source from the content-addressed store, hash-verified

91class MockRawIO(MockRawIOWithoutRead):
92
93 def read(self, n=None):
94 self._reads += 1
95 try:
96 return self._read_stack.pop(0)
97 except:
98 self._extraneous_reads += 1
99 return b""
100
101class CMockRawIO(MockRawIO, io.RawIOBase):
102 pass

Callers 15

test_as_stringMethod · 0.45
test_as_bytesMethod · 0.45
_make_audioMethod · 0.45
_make_imageMethod · 0.45
setUpMethod · 0.45
setUpMethod · 0.45
test_epilogueMethod · 0.45
_msgobjMethod · 0.45

Calls 1

popMethod · 0.45

Tested by 15

test_as_stringMethod · 0.36
test_as_bytesMethod · 0.36
_make_audioMethod · 0.36
_make_imageMethod · 0.36
setUpMethod · 0.36
setUpMethod · 0.36
test_epilogueMethod · 0.36
_msgobjMethod · 0.36