def captured_stdout():
    return captured_output("stdout")
Capture the output of sys.stdout:
dataset/ETHPy150Open OpenCobolIDE/OpenCobolIDE/open_cobol_ide/extlibs/future/backports/test/support.py/captured_stdout