io.StdCapture API [rev. unknown]

class StdCapture(Capture):

This class allows to capture writes to sys.stdout|stderr "in-memory" and will raise errors on tries to read from sys.stdin. It only modifies sys.stdout|stderr|stdin attributes and does not touch underlying File Descriptors (use StdCaptureFD for that).

methods:

def __init__(self, out=True, err=True, in_=True, mixed=False):

*no docstring available*

def call(cls, func, *args, **kwargs):

return a (res, out, err) tuple where out and err represent the output/error output during function execution. call the given function with args/kwargs and capture output/error during its execution.

def done(self):

return (outfile, errfile) and stop capturing.

def reset(self):