MCPcopy Create free account
hub / github.com/python/cpython / _is_relevant_tb_level

Method _is_relevant_tb_level

Lib/unittest/result.py:238–239  ·  view source on GitHub ↗
(self, tb)

Source from the content-addressed store, hash-verified

236 return ret
237
238 def _is_relevant_tb_level(self, tb):
239 return '__unittest' in tb.tb_frame.f_globals
240
241 def _remove_unittest_tb_frames(self, tb):
242 '''Truncates usercode tb at the first unittest frame.

Callers 3

_clean_tracebacksMethod · 0.95

Calls

no outgoing calls

Tested by 1