Lines Matching refs:tb
146 exctype, value, tb = err
148 while tb and self._is_relevant_tb_level(tb):
149 tb = tb.tb_next
152 length = self._count_relevant_tb_levels(tb)
153 msgLines = traceback.format_exception(exctype, value, tb, length)
155 msgLines = traceback.format_exception(exctype, value, tb)
170 def _is_relevant_tb_level(self, tb): argument
171 return '__unittest' in tb.tb_frame.f_globals
173 def _count_relevant_tb_levels(self, tb): argument
175 while tb and not self._is_relevant_tb_level(tb):
177 tb = tb.tb_next