'Skips can be raised as errors. When this happens, the error is
included in the summary at the end of the test suite.'

def test_exceptionSkip(self):

    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))
