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

Method invoke_dis

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

Source from the content-addressed store, hash-verified

2547 fp.write(self.text_normalize(content))
2548
2549 def invoke_dis(self, *flags):
2550 output = io.StringIO()
2551 with contextlib.redirect_stdout(output):
2552 dis.main(args=[*flags, self.filename])
2553 return self.text_normalize(output.getvalue())
2554
2555 def check_output(self, source, expect, *flags):
2556 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