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

Method read

Lib/test/test_zstd.py:1779–1780  ·  view source on GitHub ↗
(self, size=-1)

Source from the content-addressed store, hash-verified

1777 # 3, no .fileno() method
1778 class C:
1779 def read(self, size=-1):
1780 return b'123'
1781 with ZstdFile(C(), 'rb') as f:
1782 with self.assertRaisesRegex(AttributeError, r'fileno'):
1783 f.fileno()

Callers 15

setUpModuleFunction · 0.45
test_read_0Method · 0.45
test_read_10Method · 0.45
test_read_multistreamMethod · 0.45
test_read_truncatedMethod · 0.45
test_read_exceptionMethod · 0.45
test_peekMethod · 0.45
test_seek_forwardMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected