``BytesIOCopy.flush()`` also flushes ``copy_to``.
()
| 173 | |
| 174 | |
| 175 | def test_bytesiocopy_flush_propagates(): |
| 176 | class="st">""class="st">"``BytesIOCopy.flush()`` also flushes ``copy_to``."class="st">"" |
| 177 | target = io.BytesIO() |
| 178 | copier = BytesIOCopy(copy_to=target) |
| 179 | copier.write(bclass="st">"abc") |
| 180 | copier.flush() |
| 181 | assert target.getvalue() == bclass="st">"abc" |
| 182 | |
| 183 | |
| 184 | class="cm"># --------------------------------------------------------------------------- |
nothing calls this directly
no test coverage detected