[issue18937] add unittest assertion for logging

Antoine Pitrou report at bugs.python.org
Sat Sep 7 02:26:07 CEST 2013


Antoine Pitrou added the comment:

> Do you have a lot of circumstances where you want to test logging but
> you don't know the specific logger and method called? That's not a
> situation I've been in.

I have a lot of circumstances where I do not *care* about the specific
logger (as long as it's somewhere in a subhierarchy) and the specific
level (as long as it's e.g. a warning or above).

----------

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


More information about the Python-bugs-list mailing list