~cbehrens/nova/lp844160-build-works-with-zones

« back to all changes in this revision

Viewing changes to vendor/Twisted-10.0.0/twisted/test/raiser.pyx

  • Committer: Jesse Andrews
  • Date: 2010-05-28 06:05:26 UTC
  • Revision ID: git-v1:bf6e6e718cdc7488e2da87b21e258ccc065fe499
initial commit

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# Copyright (c) 2008 Twisted Matrix Laboratories.
 
2
# See LICENSE for details.
 
3
 
 
4
"""
 
5
A trivial extension that just raises an exception.
 
6
See L{twisted.test.test_failure.test_failureConstructionWithMungedStackSucceeds}.
 
7
"""
 
8
 
 
9
 
 
10
 
 
11
class RaiserException(Exception):
 
12
    """
 
13
    A speficic exception only used to be identified in tests.
 
14
    """
 
15
 
 
16
 
 
17
def raiseException():
 
18
    """
 
19
    Raise L{RaiserException}.
 
20
    """
 
21
    raise RaiserException("This function is intentionally broken")