[Zope-Coders] zLOG warnings and testrunner

Chris McDonough chrism@zope.com
Thu, 27 Sep 2001 10:23:10 -0400


I don't think it's a well thought-through policy.  Maybe this behavior
should be settable via a function in Testing.common that should not be
invoked by default.  Additionally, maybe instead of failing with a silly
uninformative message, it could say it failed because a log message above a
certain threshhold was seen.

----- Original Message -----
From: "Jeremy Hylton" <jeremy@zope.com>
To: <chrism@zope.com>
Cc: <jeremy@zope.com>; <evan@zope.com>; <zope-coders@zope.org>
Sent: Thursday, September 27, 2001 10:02 AM
Subject: Re: [Zope-Coders] zLOG warnings and testrunner


> >>>>> "CMcD" == Chris McDonough <chrism@digicool.com> writes:
>
>   CMcD> Jeremy, you might try setting a STUPID_LOG_FILE envvar (no Im
>   CMcD> not kidding) to a file, rerun the tests, and see what happens.
>   CMcD> I have no idea why pyunit is choking on Zope log calls,
>   CMcD> especially because by default nothing actually makes its way
>   CMcD> out of Zope without STUPID_LOG_FILE set.
>
> The Zope Testing.common module installs a log handler that raises an
> AssertionError when a warning or higher is logged.  So it's the policy
> of the Zope testing framework, but I've no idea why :-).
>
> Jeremy
>
>