[TIP] testing unittest2 plugin branch Was: How to get coverage.py and unittest2 working together?
jorge.vargas at gmail.com
Thu Jul 29 06:33:03 PDT 2010
On Thu, Jul 29, 2010 at 7:17 AM, Michael Foord
<fuzzyman at voidspace.org.uk> wrote:
> On 29/07/2010 03:53, Jorge Vargas wrote:
>>> I've pushed a few fixes for the coverage module in particular, so you
>>> update (and report any *new* problems).
>> Seems like there is a problem with the event, as it is not triggering?
>> File "......./src/unittest2/unittest2/plugins/testcoverage.py", line
>> 77, in stopTestRun
>> AttributeError: 'CoveragePlugin' object has no attribute 'cov'
> Man that was a difficult bug to track down, thanks for the report (now
> fixed). The issues was event handlers removing themselves during an event
> (mutating the list of handlers whilst it is being iterated over to trigger
> all the handlers - the code now iterates over a copy of the list of
Judging from the changelog it is indeed weird :) and it is indeed fixed!
Here is some progress instead of a bug report :D a little patch to add
annotations to the coverage plugin
More information about the testing-in-python