Nick Coghlan wrote: > eric.smith wrote: >> + at contextmanager >> +def stdout_redirected(new_stdout): >> + save_stdout = sys.stdout >> + sys.stdout = new_stdout >> + try: >> + yield None >> + finally: >> + sys.stdout = save_stdout > > I think this test could easily be tweaked to use > test.test_support.captured_stdout rather than reinventing the wheel :) Who reinvented the wheel? I stole this code from the PEP! :) I'll modify it. Thanks for noticing. Eric.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4