def test_trapRaisesWrappedException(self):
    '\n        If the wrapped C{Exception} is not a subclass of one of the\n        expected types, L{failure.Failure.trap} raises the wrapped\n        C{Exception}.\n        '
    if (not _PY3):
        raise SkipTest('\n                Only expected behaviour on Python 3.\n                @see U{http://twisted.readthedocs.io/en/latest/core/howto/python3.html#twisted-python-failure}\n                ')
    exception = ValueError()
    try:
        raise exception
    except:
        f = failure.Failure()
    untrapped = self.assertRaises(ValueError, f.trap, OverflowError)
    self.assertIs(exception, untrapped)
If the wrapped C{Exception} is not a subclass of one of the
expected types, L{failure.Failure.trap} raises the wrapped
C{Exception}.
def test_trapRaisesWrappedException(self):
    '\n        If the wrapped C{Exception} is not a subclass of one of the\n        expected types, L{failure.Failure.trap} raises the wrapped\n        C{Exception}.\n        '
    if (not _PY3):
        raise SkipTest('\n                Only expected behaviour on Python 3.\n                @see U{http://twisted.readthedocs.io/en/latest/core/howto/python3.html#twisted-python-failure}\n                ')
    exception = ValueError()
    try:
        raise exception
    except:
        f = failure.Failure()
    untrapped = self.assertRaises(ValueError, f.trap, OverflowError)
    self.assertIs(exception, untrapped)