def test_exceptionSkip(self):
        """
        Skips can be raised as errors. When this happens, the error is
        included in the summary at the end of the test suite.
        """
        try:
            1/0
        except Exception as e:
            error = e
        self.result.addSkip(self.test, error)
        self.result.done()
        output = '\n'.join(self.stream.getvalue().splitlines()[3:5]).strip()
        self.assertEqual(output, str(error))

        Skips can be raised as errors. When this happens, the error is
        included in the summary at the end of the test suite.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/trial/test/test_reporter.py