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

Method get_disassembly

Lib/test/test_dis.py:1465–1471  ·  view source on GitHub ↗
(self, func, lasti=-1, wrapper=True, **kwargs)

Source from the content-addressed store, hash-verified

1463
1464 # Run the tests again, using the file arg instead of print
1465 def get_disassembly(self, func, lasti=-1, wrapper=True, **kwargs):
1466 output = io.StringIO()
1467 if wrapper:
1468 dis.dis(func, file=output, **kwargs)
1469 else:
1470 dis.disassemble(func, lasti, file=output, **kwargs)
1471 return output.getvalue()
1472
1473 @unittest.expectedFailure # TODO: RUSTPYTHON; AssertionError: No END_ASYNC_FOR in disassembly of async for
1474 def test_async_for_presentation(self):

Callers

nothing calls this directly

Calls 2

getvalueMethod · 0.95
disMethod · 0.80

Tested by

no test coverage detected