def makeRunner(self):
        """
        Return a L{TrialRunner} object that is safe to use in tests.
        """
        runner = trial._makeRunner(self.config)
        runner.stream = NativeStringIO()
        return runner

        Return a L{TrialRunner} object that is safe to use in tests.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/trial/test/test_script.py