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

Method write

Lib/test/test_android.py:140–146  ·  view source on GitHub ↗
(s, lines=None, *, write_len=None)

Source from the content-addressed store, hash-verified

138 self.assertIs(stream.write_through, False)
139
140 def write(s, lines=None, *, write_len=None):
141 if write_len is None:
142 write_len = len(s)
143 self.assertEqual(write_len, stream.write(s))
144 if lines is None:
145 lines = [s]
146 self.assert_logs(level, tag, lines)
147
148 # Single-line messages,
149 with self.reconfigure(stream, write_through=True):

Callers 3

test_strMethod · 0.45
test_bytesMethod · 0.45
write_bucketfulMethod · 0.45

Calls 3

assert_logsMethod · 0.95
assertEqualMethod · 0.45
decodeMethod · 0.45

Tested by

no test coverage detected