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

Antoine Pitrou report at bugs.python.org
Fri Sep 26 17:56:06 CEST 2014


Antoine Pitrou added the comment:

Indeed, I'm sorry for suggesting two features in one issue :-)

Feature #1 is "self.verbosity" (as a read-only variable) on test cases. Sounds like a no-brainer, IMHO :-)

Feature #2 is selective enabling of the buffering feature in test cases. This rather misnamed features only prints out stdout when the test fails, which is useful when you want permanent debug statements that only pollute stdout when there is a test failure.

----------

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


More information about the Python-bugs-list mailing list