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

Method test_buffered_str

Lib/test/test_apple.py:55–63  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

53 self.assert_writes([b"hello world\n"])
54
55 def test_buffered_str(self):
56 self.log.write("h")
57 self.log.write("ello")
58 self.log.write(" ")
59 self.log.write("world\n")
60 self.log.write("goodbye.")
61 self.log.flush()
62
63 self.assert_writes([b"hello world\n", b"goodbye."])
64
65 def test_manual_flush(self):
66 self.log.write("Hello")

Callers

nothing calls this directly

Calls 3

assert_writesMethod · 0.95
writeMethod · 0.45
flushMethod · 0.45

Tested by

no test coverage detected