[New-bugs-announce] [issue24355] Provide a unittest api for controlling verbosity in tests

R. David Murray report at bugs.python.org
Mon Jun 1 22:28:25 CEST 2015

New submission from R. David Murray:

The python regression test suite has a 'verbose' flag in its test.support that some tests and test fixtures (asserts, helper methods, etc) use to control how much additional information they output.  unittest has a -v command line flag which controls the verbosity of the test runner (or whatever it is that prints out which tests have been run).  It would be very helpful if the verbosity level specified on the unittest command line were accessible to test code so that the verbosity level of the test output can also be affected from the unittest command line (I, for example, would use this to control printing logging output to the console while using tests to do debugging).  See also issue 24352.

components: Library (Lib)
messages: 244613
nosy: r.david.murray
priority: normal
severity: normal
status: open
title: Provide a unittest api for controlling verbosity in tests
type: enhancement
versions: Python 3.6

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list