tests/process/process.py
def make_output_stream(process):
    '''
    Creates an in-memory output stream and binds the given process' stdout
    and stderr to it.
    '''
    assert isinstance(process, Process), \
        '[internal] process is not a Process instance: %r' % process

    memstream = io.StringIO()

    process.filehandles.stdout = memstream
    process.filehandles.stderr = memstream

    return memstream

    Creates an in-memory output stream and binds the given process' stdout
    and stderr to it.
    
Creates an in-memory output stream and binds the given process' stdout
and stderr to it.
Creates an in - memory output stream and binds the given process ' stdout and stderr to it .
def make_output_stream(process):
    assert isinstance(process, Process), \
        '[internal] process is not a Process instance: %r' % process
    memstream = io.StringIO()
    process.filehandles.stdout = memstream
    process.filehandles.stderr = memstream
    return memstream
def make_output_stream ( process ) : assert isinstance ( process , Process ) , '[internal] process is not a Process instance: %r' % process memstream = io . StringIO ( ) process . filehandles . stdout = memstream process . filehandles . stderr = memstream return memstream
Creates an in-memory output stream and binds the given process' stdout
and stderr to it.
Creates an in - memory output stream and binds the given process ' stdout and stderr to it .
'''
    Creates an in-memory output stream and binds the given process' stdout
    and stderr to it.
    '''
process