def test_basicErrors(self):
        """
        The output at the end of a test run with skips includes the reasons
        for skipping those tests.
        """
        self.result.addSkip(self.test, 'some reason')
        self.result.done()
        output = self.stream.getvalue().splitlines()[3]
        self.assertEqual(output.strip(), 'some reason')

        The output at the end of a test run with skips includes the reasons
        for skipping those tests.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/trial/test/test_reporter.py