[issue22197] Allow better verbosity / output control in test cases

Serhiy Storchaka report at bugs.python.org
Fri Sep 26 17:29:31 CEST 2014


Serhiy Storchaka added the comment:

Usages of test.support.verbose should be replaced by self.verbosity.

As for output buffering, may be replace sys.stdout by file-like object which 
flushes its buffered content to original stdout on failure and discard it on 
success. Or add the self.log file-like object with such behavior and redirect 
all verbose output to it.

----------

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


More information about the Python-bugs-list mailing list