[New-bugs-announce] [issue10786] unittest.TextTextRunner does not respect redirected stderr

cooyeah report at bugs.python.org
Tue Dec 28 07:57:59 CET 2010


New submission from cooyeah <cooyeah at gmail.com>:

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.

----------
components: Tests
messages: 124764
nosy: cooyeah
priority: normal
severity: normal
status: open
title: unittest.TextTextRunner does not respect redirected stderr
type: behavior
versions: Python 2.6

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue10786>
_______________________________________


More information about the New-bugs-announce mailing list