This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author michael.foord
Recipients brandon-rhodes, ezio.melotti, michael.foord
Date 2011-03-17.04:38:04
SpamBayes Score 0.00011377496
Marked as misclassified No
Message-id <1300336685.59.0.359627049301.issue10979@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2011-03-17 04:38:05michael.foordsetrecipients: + michael.foord, ezio.melotti, brandon-rhodes
2011-03-17 04:38:05michael.foordsetmessageid: <1300336685.59.0.359627049301.issue10979@psf.upfronthosting.co.za>
2011-03-17 04:38:04michael.foordlinkissue10979 messages
2011-03-17 04:38:04michael.foordcreate