Module Import alias Import alias FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad NameLoad Return Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body TryExcept body Assign NameStore Call NameLoad NameLoad handlers ExceptHandler type NameLoad body Raise Call NameLoad BinOpMod Str NameLoad If CompareIn Str Call NameLoad NameLoad body Return NameLoad orelse Raise Call NameLoad BinOpMod Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore SubscriptLoad NameLoad Index Num Assign NameStore Call NameLoad NameLoad If NameLoad body Assign NameStore Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListLoad While NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore AttributeLoad NameLoad attr Assign NameStore ListLoad For NameStore Call NameLoad NameLoad body If CompareIn Str AttributeLoad AttributeLoad NameLoad attr attr body Expr Call AttributeLoad NameLoad attr NameLoad orelse Break If NameLoad body Return SubscriptLoad NameLoad Index Num decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr If BoolOpAnd NameLoad CompareNotEq NameLoad AttributeLoad NameLoad attr body Return Call NameLoad NameLoad AttributeLoad NameLoad attr decorator_list NameLoad decorator_list
N/A N/A functools N/A traceback get_exception_handler N/A N/A debugger_name N/A N/A N/A debugger N/A _get_debugger debugger_name N/A N/A N/A functools partial _exception_handler debugger N/A _get_debugger N/A N/A debugger_name N/A N/A N/A N/A N/A debugger N/A __import__ debugger_name N/A N/A N/A ImportError N/A N/A N/A ValueError N/A can't import %s module as a post mortem debugger debugger_name N/A N/A post_mortem N/A dir debugger N/A N/A debugger N/A N/A N/A ValueError N/A %s is not a supported post mortem debugger debugger_name N/A _exception_handler N/A N/A debugger exc_info N/A N/A N/A Exception handler enabling post-mortem debugging.

    A class extending testtools.TestCase can add this handler in setUp():

        self.addOnException(post_mortem_debug.exception_handler)

    When an exception occurs, the user will be dropped into a debugger
    session in the execution environment of the failure.

    Frames associated with the testing framework are excluded so that
    the post-mortem session for an assertion failure will start at the
    assertion call (e.g. self.assertTrue) rather than the framework code
    that raises the failure exception (e.g. the assertTrue method).
     N/A tb N/A exc_info N/A 2 N/A ignored_traceback N/A get_ignored_traceback tb N/A ignored_traceback N/A N/A tb N/A FilteredTraceback tb ignored_traceback N/A N/A N/A traceback print_exception N/A exc_info N/A 0 N/A exc_info N/A 1 tb N/A N/A N/A debugger post_mortem tb N/A get_ignored_traceback N/A N/A tb N/A N/A N/A Retrieve the first traceback of an ignored trailing chain.

    Given an initial traceback, find the first traceback of a trailing
    chain of tracebacks that should be ignored.  The criteria for
    whether a traceback should be ignored is whether its frame's
    globals include the __unittest marker variable. This criteria is
    culled from:

        unittest.TestResult._is_relevant_tb_level

    For example:

       tb.tb_next => tb0.tb_next => tb1.tb_next

    - If no tracebacks were to be ignored, None would be returned.
    - If only tb1 was to be ignored, tb1 would be returned.
    - If tb0 and tb1 were to be ignored, tb0 would be returned.
    - If either of only tb or only tb0 was to be ignored, None would
      be returned because neither tb or tb0 would be part of a
      trailing chain of ignored tracebacks.
     N/A tb_list N/A N/A tb N/A N/A N/A N/A tb_list append tb N/A tb N/A tb tb_next N/A ignored_tracebacks N/A N/A tb N/A reversed tb_list N/A N/A N/A __unittest N/A N/A tb tb_frame f_globals N/A N/A N/A N/A ignored_tracebacks append tb N/A N/A N/A ignored_tracebacks N/A N/A N/A ignored_tracebacks N/A -1 N/A FilteredTraceback N/A object N/A N/A Wraps a traceback to filter unwanted frames. __init__ N/A N/A self tb filtered_traceback N/A N/A N/A Constructor.

        :param tb: The start of the traceback chain to filter.
        :param filtered_traceback: The first traceback of a trailing
               chain that is to be filtered.
         N/A N/A self _tb tb N/A N/A self tb_lasti N/A N/A self _tb tb_lasti N/A N/A self tb_lineno N/A N/A self _tb tb_lineno N/A N/A self tb_frame N/A N/A self _tb tb_frame N/A N/A self _filtered_traceback filtered_traceback N/A tb_next N/A N/A self N/A N/A N/A tb_next N/A N/A self _tb tb_next N/A N/A tb_next N/A tb_next N/A self _filtered_traceback N/A N/A N/A FilteredTraceback tb_next N/A self _filtered_traceback N/A property N/A