Issue #15805: Add contextlib.redirect_stdout()