[New-bugs-announce] [issue24352] Provide a way for assertLogs to optionally not hide the logging output
R. David Murray
report at bugs.python.org
Mon Jun 1 21:15:30 CEST 2015
New submission from R. David Murray:
In my test framework I have a 'verbose' flag that causes the logging output to be written to the console[*], which helps greatly during debugging. However, if assertLogs is used, the logging is suppressed, and when debugging logging failures it is really helpful to see the full logging output :).
Ideally there would be a unittest-supported 'verbose' flag that assertLogs could look at and not suppress existing logging when it is at level 2 or greater. Or perhaps a flag specific to logging output would be better? I don't really care what the API is as long as I can arrange to set it from the CLI as part of running individual tests.
----------
components: Library (Lib)
messages: 244608
nosy: r.david.murray
priority: normal
severity: normal
status: open
title: Provide a way for assertLogs to optionally not hide the logging output
type: enhancement
versions: Python 3.6
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue24352>
_______________________________________
More information about the New-bugs-announce
mailing list