module documentation

Test cases for the twisted.python.failure module.

Class BrokenExceptionMetaclass A metaclass for an exception type which cannot be presented as a string via str.
Class DebugModeTests Failure's debug mode should allow jumping into the debugger.
Class ExtendedGeneratorTests Tests failure.Failure support for generator features added in Python 2.5
Class FailureTests Tests for failure.Failure.
Class FakeAttributesTests _Frame, _Code and _TracebackFrame objects should possess some basic attributes that qualify them as fake python objects, allowing the return of _Traceback to be used as a fake traceback. The attributes that have zero or empty values are there so that things expecting them find them (e...
Class FindFailureTests Tests for functionality related to Failure._findFailure.
Class FormattableTracebackTests Whitebox tests that show that failure._Traceback constructs objects that can be used by traceback.extract_tb.
Class GetTracebackTests Tests for Failure.getTraceback.
Exception BrokenExceptionType The aforementioned exception type which cannot be presented as a string via str.
Exception BrokenStr An exception class the instances of which cannot be presented as strings via str.
Function getDivisionFailure Make a Failure of a divide-by-zero error.
Function _tb Undocumented
def getDivisionFailure(*args, **kwargs): (source)

Make a Failure of a divide-by-zero error.

Parameters
*argsAny *args are passed to Failure's constructor.
**kwargsAny **kwargs are passed to Failure's constructor.
def _tb(fn, lineno, name, text): (source)

Undocumented