Michael Foord <mich...@voidspace.org.uk> added the comment:

Thanks for finding this Brandon. The same problem probably exists for 
setupmodule and the teardown variants too.

The issue is that the sys.stdout manipulation is done by result.startTest but 
setUpClass and setUpModule are executed by the suite outside the normal 
startTest / stopTest cycle. 

I think the answer is to have the stdout manipulation done in separate result 
methods (called by stopTest / startTest) that can also be called by the suite 
around the setup / teardown of class and module.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue10979>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to