Comment 1 for bug 637674

Revision history for this message
Robert Collins (lifeless) wrote : Re: [Bug 637674] [NEW] RemotedTestCase.addCleanup exists but fails under Python 2.7

On Tue, Sep 14, 2010 at 12:05 PM, Andrew Bennetts
<email address hidden> wrote:
> Public bug reported:
>
> bzr at one point has this code:
>
>        # Only check for thread leaks if the test case supports cleanups
>        addCleanup = getattr(test, "addCleanup", None)
>        if addCleanup is not None:
>            addCleanup(self._check_leaked_threads, test)

Thats buggy code though.