(capfd, test_tuple)
| 16 | ('../test/bytecode_2.7/05_ifelse.pyc', 'testdata/ifelse-2.7.right',), |
| 17 | ]) |
| 18 | def 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 |
nothing calls this directly
no test coverage detected