Re: Conflict between PEAK and coverage.py
"P.J. Eby" <pje-Wh6+Hckhi6HFNGf7iClzIwC/[email protected]> Fri, 18 Mar 2011 14:59:47 -0400
| Newsgroups | gmane.comp.python.peak |
|---|---|
| Message-ID | <[email protected]> |
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.