MCPcopy
hub / github.com/pallets/click / test_bytesiocopy_flush_propagates

Function test_bytesiocopy_flush_propagates

tests/test_stream_lifecycle.py:175–181  ·  view source on GitHub ↗

``BytesIOCopy.flush()`` also flushes ``copy_to``.

()

Source from the content-addressed store, hash-verified

173
174
175def test_bytesiocopy_flush_propagates():
176 """``BytesIOCopy.flush()`` also flushes ``copy_to``."""
177 target = io.BytesIO()
178 copier = BytesIOCopy(copy_to=target)
179 copier.write(b"abc")
180 copier.flush()
181 assert target.getvalue() == b"abc"
182
183
184# ---------------------------------------------------------------------------

Callers

nothing calls this directly

Calls 4

writeMethod · 0.95
flushMethod · 0.95
BytesIOCopyClass · 0.90
getvalueMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…