``BytesIOCopy.flush()`` also flushes ``copy_to``.
()
| 173 | |
| 174 | |
| 175 | def 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 | # --------------------------------------------------------------------------- |
nothing calls this directly
no test coverage detected
searching dependent graphs…