[TIP] testing unittest2 plugin branch Was: How to get coverage.py and unittest2 working together?

Michael Foord fuzzyman at voidspace.org.uk
Thu Jul 29 04:17:21 PDT 2010

On 29/07/2010 03:53, Jorge Vargas wrote:
> [snip...]
>> I've pushed a few fixes for the coverage module in particular, so you should
>> 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
>      self.cov.stop()
> 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 handlers).




READ CAREFULLY. By accepting and reading this email you agree, on behalf of your employer, to release me from all obligations and waivers arising from any and all NON-NEGOTIATED agreements, licenses, terms-of-service, shrinkwrap, clickwrap, browsewrap, confidentiality, non-disclosure, non-compete and acceptable use policies (”BOGUS AGREEMENTS”) that I have entered into with your employer, its partners, licensors, agents and assigns, in perpetuity, without prejudice to my ongoing rights and privileges. You further represent that you have the authority to release me from any BOGUS AGREEMENTS on behalf of your employer.

More information about the testing-in-python mailing list