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

Class MockIO

Lib/test/test_io/test_textio.py:1503–1507  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1501 chunk_size = 8192 # default chunk size, updated later
1502
1503 class MockIO(self.MockRawIO):
1504 def write(self, data):
1505 if len(data) > chunk_size:
1506 raise RuntimeError
1507 return super().write(data)
1508
1509 buf = MockIO()
1510 t = self.TextIOWrapper(buf, encoding="ascii")

Callers 2

test_issue119506Method · 0.85

Calls

no outgoing calls

Tested by 2

test_issue119506Method · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…