twisted.internet.testing.StringIOWithoutClosing(BytesIO)
twisted.internet.testing
A BytesIO that can't be closed.
Do nothing.