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

Method write

Lib/test/test_io/test_textio.py:1504–1507  ·  view source on GitHub ↗
(self, data)

Source from the content-addressed store, hash-verified

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 14

test_basic_ioMethod · 0.45
multi_line_testMethod · 0.45
test_tellingMethod · 0.45
test_seekingMethod · 0.45
test_seeking_tooMethod · 0.45
test_append_bomMethod · 0.45
test_seek_bomMethod · 0.45
test_seek_append_bomMethod · 0.45

Calls 1

superClass · 0.85

Tested by

no test coverage detected