(self, result)
| 58 | self.addTest(test) |
| 59 | |
| 60 | def run(self, result): |
| 61 | for index, test in enumerate(self): |
| 62 | if result.shouldStop: |
| 63 | break |
| 64 | test(result) |
| 65 | if self._cleanup: |
| 66 | self._removeTestAtIndex(index) |
| 67 | return result |
| 68 | |
| 69 | def _removeTestAtIndex(self, index): |
| 70 | """Stop holding a reference to the TestCase at index.""" |