eric.smith wrote:
> [EMAIL PROTECTED]
> +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 :)

(cc'ing python-dev for visibility since the sprints are generating a lot 
of python-checkins traffic)

Cheers,
Nick.

-- 
Nick Coghlan   |   [EMAIL PROTECTED]   |   Brisbane, Australia
---------------------------------------------------------------
             http://www.boredomandlaziness.org
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to