tests/process/process.py
def poll_process_output(process):
    '''
    Reads and returns the output to stdout and stderr for the supplied process.
    This blocks until the process has either terminated, or has closed the
    output file descriptors.
    '''
    assert isinstance(process, Process), \
        '[internal] process is not a Process instance: %r' % process

    if process.alive():
        logger.debug('process is still alive, this will likely block')

    # wait at most 3 seconds, and throw TimeoutExpired if that passes
    return process.communicate(None, 3)

    Reads and returns the output to stdout and stderr for the supplied process.
    This blocks until the process has either terminated, or has closed the
    output file descriptors.
    
Reads and returns the output to stdout and stderr for the supplied process.
This blocks until the process has either terminated, or has closed the
output file descriptors.
Reads and returns the output to stdout and stderr for the supplied process . This blocks until the process has either terminated or has closed the output file descriptors .
def poll_process_output(process):
    assert isinstance(process, Process), \
        '[internal] process is not a Process instance: %r' % process
    if process.alive():
        logger.debug('process is still alive, this will likely block')
    return process.communicate(None, 3)
def poll_process_output ( process ) : assert isinstance ( process , Process ) , '[internal] process is not a Process instance: %r' % process if process . alive ( ) : logger . debug ( 'process is still alive, this will likely block' ) return process . communicate ( None , 3 )
Reads and returns the output to stdout and stderr for the supplied process.
Reads and returns the output to stdout and stderr for the supplied process .
'''
    Reads and returns the output to stdout and stderr for the supplied process.
    This blocks until the process has either terminated, or has closed the
    output file descriptors.
    ''' # wait at most 3 seconds, and throw TimeoutExpired if that passes
process