[PEAK] Conflict between PEAK and coverage.py

P.J. Eby pje at telecommunity.com
Fri Mar 18 14:59:47 EDT 2011

At 03:19 PM 3/12/2011 -0800, Bobby Impollonia wrote:
>The error is:
>TypeError: unbound method make_decorator() must be called with Method
>instance as first argument (got str instance instead)
>It originates from line 296 of peak.rules.core:
>when = Method.make_decorator(
>    "when", "Extend a generic function with a new action"

The real error here is occurring earlier, when make_decorator isn't 
getting made into a classmethod.  So, it would appear that something 
in coverage's trace function is disabling DecoratorTools' trace 
function, or at any rate stopping it from getting called.

>coverage run ./mytest.py # this throws the exception

Have you tried the --timid option?  Coverage's internal docs suggest 
that this is required when working with DecoratorTools.

More information about the PEAK mailing list