MCPcopy Index your code
hub / github.com/RustPython/RustPython / MockIO

Class MockIO

Lib/test/test_io.py:4170–4174  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4168 chunk_size = 8192 # default chunk size, updated later
4169
4170 class MockIO(self.MockRawIO):
4171 def write(self, data):
4172 if len(data) > chunk_size:
4173 raise RuntimeError
4174 return super().write(data)
4175
4176 buf = MockIO()
4177 t = self.TextIOWrapper(buf, encoding="ascii")

Callers 2

test_issue119506Method · 0.85

Calls

no outgoing calls

Tested by 2

test_issue119506Method · 0.68