def run_driver(prob):
    '\n    Call `run_driver` on problem and capture output.\n\n    Parameters\n    ----------\n    prob : Problem\n        An instance of Problem.\n\n    Returns\n    -------\n    bool\n        Failure flag; True if failed to converge, False is successful.\n    string\n        Output from calling `run_driver` on the Problem, captured from stdout.\n    '
    stdout = sys.stdout
    strout = StringIO()
    sys.stdout = strout
    try:
        failed = prob.run_driver()
    finally:
        sys.stdout = stdout
    return (failed, strout.getvalue())
Call `run_driver` on problem and capture output.

Parameters
----------
prob : Problem
    An instance of Problem.

Returns
-------
bool
    Failure flag; True if failed to converge, False is successful.
string
    Output from calling `run_driver` on the Problem, captured from stdout.
def run_driver(prob):
    '\n    Call `run_driver` on problem and capture output.\n\n    Parameters\n    ----------\n    prob : Problem\n        An instance of Problem.\n\n    Returns\n    -------\n    bool\n        Failure flag; True if failed to converge, False is successful.\n    string\n        Output from calling `run_driver` on the Problem, captured from stdout.\n    '
    stdout = sys.stdout
    strout = StringIO()
    sys.stdout = strout
    try:
        failed = prob.run_driver()
    finally:
        sys.stdout = stdout
    return (failed, strout.getvalue())