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 cooyeah, michael.foord
Date 2010-12-28.16:27:49
SpamBayes Score 0.00049642817
Marked as misclassified No
Message-id <1293553671.41.0.802765462572.issue10786@psf.upfronthosting.co.za>
In-reply-to
Content
TextTestRunner is initialised with a stream to output messages on that defaults to sys.stderr. The correct way to redirect messages is to construct it with a different stream. 

If you want a redirectable stream then construct the runner with a stream that delegates operations to a 'backend stream' but allows you to redirect it.

Fixing TextTestRunner to dynamically lookup up sys.stderr would not be compatible with systems that redirect sys.stderr but *don't* expect this to prevent test run information from being output.

I suggest closing as wontfix.
History
Date User Action Args
2010-12-28 16:27:51michael.foordsetrecipients: + michael.foord, cooyeah
2010-12-28 16:27:51michael.foordsetmessageid: <1293553671.41.0.802765462572.issue10786@psf.upfronthosting.co.za>
2010-12-28 16:27:49michael.foordlinkissue10786 messages
2010-12-28 16:27:49michael.foordcreate