Home | History | Annotate | Download | only in unittest

Lines Matching refs:tb

154         exctype, value, tb = err
156 while tb and self._is_relevant_tb_level(tb):
157 tb = tb.tb_next
161 length = self._count_relevant_tb_levels(tb)
162 msgLines = traceback.format_exception(exctype, value, tb, length)
164 msgLines = traceback.format_exception(exctype, value, tb)
180 def _is_relevant_tb_level(self, tb):
181 return '__unittest' in tb.tb_frame.f_globals
183 def _count_relevant_tb_levels(self, tb):
185 while tb and not self._is_relevant_tb_level(tb):
187 tb = tb.tb_next