R. David Murray added the comment: You can use test.support.captured_stdout or whatever its name is. ---------- _______________________________________ Python tracker <report at bugs.python.org> <http://bugs.python.org/issue21725> _______________________________________