Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
Twisted / test / raiser.pyx
Size: Mime:
# Copyright (c) Twisted Matrix Laboratories.
# See LICENSE for details.

"""
A trivial extension that just raises an exception.
See L{twisted.test.test_failure.test_failureConstructionWithMungedStackSucceeds}.
"""



class RaiserException(Exception):
    """
    A speficic exception only used to be identified in tests.
    """


def raiseException():
    """
    Raise L{RaiserException}.
    """
    raise RaiserException("This function is intentionally broken")