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

Method test_from_traceback_dis

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

Source from the content-addressed store, hash-verified

2374 self.assertEqual(b.current_offset, tb.tb_lasti)
2375
2376 def test_from_traceback_dis(self):
2377 self.maxDiff = None
2378 tb = get_tb()
2379 b = dis.Bytecode.from_traceback(tb)
2380 self.assertEqual(b.dis(), dis_traceback)
2381
2382 @requires_debug_ranges()
2383 def test_bytecode_co_positions(self):

Callers

nothing calls this directly

Calls 4

from_tracebackMethod · 0.80
disMethod · 0.80
get_tbFunction · 0.70
assertEqualMethod · 0.45

Tested by

no test coverage detected