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

Method test_flush

Lib/test/test_io/test_bufferedio.py:793–798  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

791 self.assertEqual(raw.getvalue(), b"XYcdef123456")
792
793 def test_flush(self):
794 writer = self.MockRawIO()
795 bufio = self.tp(writer, 8)
796 bufio.write(b"abc")
797 bufio.flush()
798 self.assertEqual(b"abc", writer._write_stack[0])
799
800 def test_writelines(self):
801 l = [b'ab', b'cd', b'ef']

Callers

nothing calls this directly

Calls 3

writeMethod · 0.45
flushMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected