MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_from_traceback

Method test_from_traceback

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

Source from the content-addressed store, hash-verified

2361 self.do_disassembly_compare(actual, dis_f)
2362
2363 def test_from_traceback(self):
2364 tb = get_tb()
2365 b = dis.Bytecode.from_traceback(tb)
2366 while tb.tb_next: tb = tb.tb_next
2367
2368 self.assertEqual(b.current_offset, tb.tb_lasti)
2369
2370 @unittest.expectedFailure # TODO: RUSTPYTHON
2371 def test_from_traceback_dis(self):

Callers

nothing calls this directly

Calls 3

from_tracebackMethod · 0.80
get_tbFunction · 0.70
assertEqualMethod · 0.45

Tested by

no test coverage detected