~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/__init__.py

Use jam's trick with getDetails rather than hacking around double underscore name mangling

Show diffs side-by-side

added added

removed removed

Lines of Context:
309
309
    def stopTest(self, test):
310
310
        super(ExtendedTestResult, self).stopTest(test)
311
311
        # Manually break cycles, means touching various private things but hey
312
 
        details = getattr(test, "_TestCase__details", None)
313
 
        if details is not None:
314
 
            details.clear()
 
312
        getDetails = getattr(test, "getDetails", None)
 
313
        if getDetails is not None:
 
314
            getDetails().clear()
315
315
        type_equality_funcs = getattr(test, "_type_equality_funcs", None)
316
316
        if type_equality_funcs is not None:
317
317
            type_equality_funcs.clear()