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

Method invoke_dis

Lib/test/test_dis.py:2546–2550  ·  view source on GitHub ↗
(self, *flags)

Source from the content-addressed store, hash-verified

2544 fp.write(self.text_normalize(content))
2545
2546 def invoke_dis(self, *flags):
2547 output = io.StringIO()
2548 with contextlib.redirect_stdout(output):
2549 dis.main(args=[*flags, self.filename])
2550 return self.text_normalize(output.getvalue())
2551
2552 def check_output(self, source, expect, *flags):
2553 with self.subTest(source=source, flags=flags):

Callers 2

check_outputMethod · 0.95
test_invocationMethod · 0.95

Calls 3

text_normalizeMethod · 0.95
getvalueMethod · 0.95
mainMethod · 0.45

Tested by

no test coverage detected