Module Import alias ImportFrom alias alias ImportFrom alias ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad Str Str Assign NameStore Str Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body TryExcept body Raise Call NameLoad Str handlers ExceptHandler type NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr CompareIn Str NameLoad decorator_list decorator_list
N/A N/A sys tap.formatter format_as_diagnostics format_exception tap.tests TestCase TestFormatter N/A TestCase N/A test_formats_as_diagnostics N/A N/A self N/A N/A N/A data N/A foo
 bar
 N/A expected_diagnostics # foo
# bar
 N/A diagnostics N/A format_as_diagnostics data N/A N/A N/A self assertEqual expected_diagnostics diagnostics N/A test_format_exception_as_diagnostics N/A N/A self N/A N/A N/A N/A N/A N/A ValueError boom N/A N/A N/A ValueError N/A N/A exc N/A N/A sys exc_info N/A diagnostics N/A format_exception exc N/A N/A N/A self assertTrue N/A N/A diagnostics startswith #  N/A N/A N/A self assertTrue N/A boom diagnostics N/A N/A