MCPcopy Index your code
hub / github.com/rocky/python-uncompyle6 / test_funcoutput

Function test_funcoutput

pytest/test_disasm.py:18–27  ·  view source on GitHub ↗
(capfd, test_tuple)

Source from the content-addressed store, hash-verified

16 ('../test/bytecode_2.7/05_ifelse.pyc', 'testdata/ifelse-2.7.right',),
17])
18def test_funcoutput(capfd, test_tuple):
19
20 in_file, filename_expected = test_tuple
21 disassemble_file(in_file)
22 resout, reserr = capfd.readouterr()
23 expected = open(filename_expected, "r").read()
24 if resout != expected:
25 with open(filename_expected + ".got", "w") as out:
26 out.write(resout)
27 assert resout == expected

Callers

nothing calls this directly

Calls 4

disassemble_fileFunction · 0.90
openFunction · 0.85
readMethod · 0.80
writeMethod · 0.45

Tested by

no test coverage detected