[issue10786] unittest.TextTextRunner does not respect redirected stderr
Terry J. Reedy
report at bugs.python.org
Sat Jan 1 00:15:27 CET 2011
Terry J. Reedy <tjreedy at udel.edu> added the comment:
Since the current behavior matches the current doc,
"class unittest.TextTestRunner(stream=sys.stderr, descriptions=True, verbosity=1, runnerclass=None, warnings=None)
A basic test runner implementation which prints results on standard error. ..."
this is a feature change request, not a bug report. Hence, the change should not be backported, lest it surprise someone. One could even question whether the change should be introduced now, but is does seem rather minor.
That aside, the doc needs to be changed and a version-changed note added. Something like
"class unittest.TextTestRunner(stream=None, descriptions=True, verbosity=1, runnerclass=None, warnings=None)
A basic test runner implementation. If *stream* is the default None, results go to standard error. ...
Version changed 3.2: default stream determined when class is instantiated rather than when imported."
type: behavior -> feature request
versions: -Python 2.7, Python 3.1
Python tracker <report at bugs.python.org>
More information about the Python-bugs-list