def run(self, result):
        """
        Almost the same as L{TestSuite.run}, but with C{self._tests} being
        empty at the end.
        """
        while self._tests:
            if result.shouldStop:
                break
            test = self._tests.pop(0)
            test(result)
        return result

        Almost the same as L{TestSuite.run}, but with C{self._tests} being
        empty at the end.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/trial/runner.py