~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_selftest.py

(jelmer) Only track threads on bzrlib testcases. (Martin [gz])

Show diffs side-by-side

added added

removed removed

Lines of Context:
3251
3251
        class Test(unittest.TestCase):
3252
3252
            def runTest(self):
3253
3253
                pass
3254
 
            addCleanup = None # for when on Python 2.7 with native addCleanup
3255
3254
        result = self.LeakRecordingResult()
3256
3255
        test = Test()
3257
 
        self.assertIs(getattr(test, "addCleanup", None), None)
3258
3256
        result.startTestRun()
3259
3257
        test.run(result)
3260
3258
        result.stopTestRun()