eric smith nvmkmhkiwaqodtruebladecom nick coghlan wrote ericsmith wrote contextmanager def stdout_redirectednew_stdout save_stdout sysstdout sysstdout new_stdout try yield none finally sysstdout save_stdout think test could easily tweaked use testtest_supportcaptured_stdout rather reinventing wheel reinvented wheel stole code pep ill modify thanks noticing eric _______________________________________________ pythondev mailing list zvlllneumpythonorg httpmailpythonorgmailmanlistinfopythondev unsubscribe httpmailpythonorgmailmanoptionspythondevpythondev40tangomucom wed 06 aug 2008 104544 0400 pythondev python3000checkins r61522 pythonbranchespy3klibtesttest_printpy