MCPcopy Index your code
hub / github.com/python/cpython / test_from_traceback

Method test_from_traceback

Lib/test/test_dis.py:2369–2374  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2367 self.do_disassembly_compare(actual, dis_f)
2368
2369 def test_from_traceback(self):
2370 tb = get_tb()
2371 b = dis.Bytecode.from_traceback(tb)
2372 while tb.tb_next: tb = tb.tb_next
2373
2374 self.assertEqual(b.current_offset, tb.tb_lasti)
2375
2376 def test_from_traceback_dis(self):
2377 self.maxDiff = None

Callers

nothing calls this directly

Calls 3

from_tracebackMethod · 0.80
get_tbFunction · 0.70
assertEqualMethod · 0.45

Tested by

no test coverage detected