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 cooyeah
Recipients cooyeah
Date 2010-12-28.06:57:57
SpamBayes Score 0.005916679
Marked as misclassified No
Message-id <1293519479.07.0.371916485658.issue10786@psf.upfronthosting.co.za>
In-reply-to
Content
The constructor of TextTestRunner class looks like:
def __init__(self, stream=sys.stderr, descriptions=1, verbosity=1)

Since the default parameter is evaluated only once, if sys.stderr is redirected later, the test would still use the old stderr when it was first initialized.
History
Date User Action Args
2010-12-28 06:57:59cooyeahsetrecipients: + cooyeah
2010-12-28 06:57:59cooyeahsetmessageid: <1293519479.07.0.371916485658.issue10786@psf.upfronthosting.co.za>
2010-12-28 06:57:57cooyeahlinkissue10786 messages
2010-12-28 06:57:57cooyeahcreate