logging module and doctest

Gary Jefferson garyjefferson123 at yahoo.com
Thu Jan 25 06:32:25 CET 2007


I've written a logging.filter and would like to use doctest on it
(using a StreamHandler for stdout), but this doesn't seem possible.
Output from the logger seems to disappear (running the doctest strings
through the interpreter as-is yields expected results).  I assume this
is because doctest does something with logging.  Is there any way to
make these work together?

Gary




More information about the Python-list mailing list