Home | History | Annotate | Download | only in python2.7

Lines Matching refs:exception

410         from stdout, or a traceback in case of exception).  `want` ends
414 - exc_msg: The exception message generated by the example, if
415 the example is expected to generate an exception; or `None` if
416 it is not expected to generate an exception. This exception
575 # - the exception message (`msg`), as generated by
578 # exception message is the first non-indented line starting with a word
1206 Report that the given example raised an unexpected exception.
1209 'Exception raised:\n' + _indent(_exception_traceback(exc_info)))
1284 # any exception that gets raised. (But don't intercept
1291 exception = None
1295 exception = sys.exc_info()
1304 if exception is None:
1308 # The example raised an exception: check if it was expected.
1316 # an exception.
1320 # We expected an exception: see whether it matches.
1644 class DocTestFailure(Exception):
1647 The exception instance has variables:
1663 class UnexpectedException(Exception):
1664 """A DocTest example has encountered an unexpected exception
1666 The exception instance has variables:
1672 - exc_info: the exception info
1683 r"""Run doc tests but raise an exception as soon as there is a failure.
1685 If an unexpected exception occurs, an UnexpectedException is raised.
1686 It contains the test, the example, and the original exception:
1708 We wrap the original exception to give the calling application
1848 Optional keyword arg "raise_on_error" raises an exception on the
1849 first unexpected exception or failure. This allows failures to be
1960 Optional keyword arg "raise_on_error" raises an exception on the
1961 first unexpected exception or failure. This allows failures to be
2225 exception:
2236 the original exception:
2340 tests in a doc string fail, then the test case fails. An exception
2384 # It is probably a bug that this exception is not also raised if the
2387 # an exception at all here, though it is too late to make this change