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

Reply via email to