[New-bugs-announce] [issue22197] Allow better verbosity / output control in test cases

Antoine Pitrou report at bugs.python.org
Thu Aug 14 17:39:01 CEST 2014


New submission from Antoine Pitrou:

Currently, test cases have no control over output and verbosity. I would propose two possible enhancements:
- give the TestCase read access to the verbosity value (as e.g. `self.verbosity`), to allow for conditional output in tests
- allow test methods to force output buffering (rather than only let the user specify it on the command line), because you would like some stuff to only be printed out on failure; a decorator would IMO be fine

----------
components: Library (Lib)
messages: 225304
nosy: ezio.melotti, michael.foord, pitrou
priority: normal
severity: normal
status: open
title: Allow better verbosity / output control in test cases
type: enhancement
versions: Python 3.5

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


More information about the New-bugs-announce mailing list