[TIP] nose with doctests and logging

John Evans john at milo.com
Mon Feb 1 15:02:02 PST 2010


I should have mentioned I tried the --nologcapture and -s options to no
avail.  I just tried --logging-filter=CRITICAL and also had no luck.

-
John

On Mon, Feb 1, 2010 at 2:16 PM, Kumar McMillan <kumar.mcmillan at gmail.com>wrote:

> On Mon, Feb 1, 2010 at 3:32 PM, John Evans <john at milo.com> wrote:
> > Hi,
> > I am trying set the log level for my unit tests to CRITICAL which makes
> my
> > tests run much faster.  This works fine if I don't enable doc tests via
> the
> > --with-doctests command line argument.  However, if I do enable doc tests
> it
> > seems to ignore the logging configuration.  I looked through the source
> of
> > the doc test plugin and I didn't see any obvious reason why this would
> > be occurring.  Has anyone gotten this working or can anyone point me in
> the
> > right direction for what I should be looking for in the source?
>
> Hmm, I'm actually not sure how logging capture works in Nose when used
> on doctests.  However, you could try setting --logging-filter=CRITICAL
> or lower to see if that helps.  More info (perhaps) :
>
> http://somethingaboutorange.com/mrl/projects/nose/0.11.1/plugins/logcapture.html
>
> Or you could try --nologcapture to see if that does what you want.
>
> > Thanks,
> > -
> > John
> > _______________________________________________
> > testing-in-python mailing list
> > testing-in-python at lists.idyll.org
> > http://lists.idyll.org/listinfo/testing-in-python
> >
> >
>



-- 
John Evans
Founder and CTO

Milo.com, Inc.
165 University Avenue
Palo Alto, CA 94301
http://milo.com

Cell: (703) 509-3931
Email/G-talk: john at milo.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.idyll.org/pipermail/testing-in-python/attachments/20100201/b7055d81/attachment.htm>


More information about the testing-in-python mailing list