def tearDown(self): super(StringTests, self).tearDown() gc.collect() if talloc.total_blocks() != self.startup_blocks: talloc.report_full() self.fail("it appears we are leaking memory")
def tearDown(self): super(ArrayTests, self).tearDown() gc.collect() if talloc.total_blocks() != self.startup_blocks: talloc.report_full() self.fail("it appears we are leaking memory")
def tearDown(self): super(ArrayTests, self).tearDown() self.assertEqual(talloc.total_blocks(), self.startup_blocks) talloc.report_full()