def test_dis_traceback(self):
self.skipTest('Fix up ability to disassemble straceback')
return
try:
del sys.last_traceback
except AttributeError:
pass
try:
1/0
except Exception as e:
tb = e.__traceback__
sys.last_traceback = tb
tb_dis = self.get_disassemble_as_string(tb.tb_frame.f_code, tb.tb_lasti)
self.dis_disassembly34(None, tb_dis)
评论列表
文章目录