Lines Matching refs:exception
24 class SkipTest(Exception):
26 Raise this exception in a test to skip it.
32 class _ExpectedFailure(Exception):
41 Exception.__init__(self)
45 class _UnexpectedSuccess(Exception):
52 Exception.__init__(self)
97 except Exception:
107 except Exception:
135 self.exception = exc_value # store for later retrieval
191 # This attribute determines which exception will be raised when
193 # exception will be deemed to have 'failed' rather than 'errored'
353 except Exception:
378 except Exception:
385 except Exception:
409 except Exception:
467 """Fail unless an exception of class excClass is thrown
469 arguments kwargs. If a different type of exception is
472 unexpected exception.
480 The context manager keeps a reference to the exception as
481 the 'exception' attribute. This allows you to inspect the
482 exception after the assertion::
486 the_exception = cm.exception
506 raise a failure exception if first != second with a useful human
993 """Asserts that the message in a raised exception matches a regexp.
996 expected_exception: Exception class expected to be raised.