Close #19403: make contextlib.redirect_stdout reentrant
4 files changed