Lines Matching refs:exception
25 class SkipTest(Exception):
27 Raise this exception in a test to skip it.
34 class _ExpectedFailure(Exception):
45 class _UnexpectedSuccess(Exception):
92 except Exception:
120 self.exception = exc_value # store for later retrieval
155 * failureException: determines which exception will be raised when
157 exception will be deemed to have 'failed' rather than 'errored'.
449 """Fail unless an exception of class excClass is raised
451 arguments kwargs. If a different type of exception is
454 unexpected exception.
462 The context manager keeps a reference to the exception as
463 the 'exception' attribute. This allows you to inspect the
464 exception after the assertion::
468 exception
481 raise a failure exception if first != second with a useful human
979 """Asserts that the message in a raised exception matches a regexp.
982 expected_exception: Exception class expected to be raised.