def captured_stderr():
 return captured_output('stderr')

def captured_stderr ( ) : return captured_output ( 'stderr' )
return a context manager used by captured_stdout/stdin/stderr that temporarily replaces the sys stream *stream_name* with a stringio .