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

Method test_manual_flush

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

Source from the content-addressed store, hash-verified

63 self.assert_writes([b"hello world\n", b"goodbye."])
64
65 def test_manual_flush(self):
66 self.log.write("Hello")
67
68 self.assert_writes([])
69
70 self.log.write(" world\nHere for a while...\nGoodbye")
71 self.assert_writes([b"Hello world\n", b"Here for a while...\n"])
72
73 self.log.write(" world\nHello again")
74 self.assert_writes([b"Goodbye world\n"])
75
76 self.log.flush()
77 self.assert_writes([b"Hello again"])
78
79 def test_non_ascii(self):
80 # Spanish

Callers

nothing calls this directly

Calls 3

assert_writesMethod · 0.95
writeMethod · 0.45
flushMethod · 0.45

Tested by

no test coverage detected