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 <rep...@bugs.python.org> <http://bugs.python.org/issue24355> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com